linux 查找pid并kill eg: sh upload.sh >ellen.log ellen.log路径 /data/Ellen/ellen.log 需求:要有一个脚本去kill并重新执行 upload.sh 实现: #!bin/bash PID= ( p s x ∣ g r e p u p l o a d . s h ∣ s e