标签:bsp The linu ase pid ber name number run
vi proc1.sh
#!/bin/bash
#此脚本期望的参数个数
argno=1
if [ $# -ne $argno ]
then
echo "Usage: ‘basename $0‘ PID-number" >&2
fi
if [ ! -f "/proc/$1" ]
then
echo "Process #$1 is running"
else
echo "No such process running! "
fi
./proc1.sh 5728
Process #5728 is running
标签:bsp The linu ase pid ber name number run
原文地址:https://www.cnblogs.com/zhudaheng123/p/14653245.html