使用道具 举报
#!/bin./sh echo "Enter the program: " read Enter N=`ps -ax|grep -c $Enter|grep -v "grep"` if [ $N -eq 0 ] then echo "$Enter has't run!" else echo "$Enter running!" fi 用这个试试! 我已经修改过!(没测试过!)
#!/bin/sh echo "Enter the program: " read Enter N=`ps -ax|grep -c $Enter|grep -v "grep"` if [ $N -eq 0 ] then echo "$Enter has't run!" else echo "$Enter running!" fi 用这个试试! 我已经修改过!(没测试过!)
本版积分规则 发表回复 回帖并转播 回帖后跳转到最后一页
GMT+8, 2025-2-12 03:12 , Processed in 0.028143 second(s), 16 queries .
© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.