參數輸入進程號...
#!/bin/bash
if [ -z $1 ]
then
echo "Need a pid argument"
exit 1
fi
if [ -d /proc/$1 ];then
exit 0
else
exit 1
fi
ivaneeo's blog自由的力量,自由的生活。 |
參數輸入進程號... if [ -z $1 ] if [ -d /proc/$1 ];then |