linux进程监控shell脚本代码
为确保php页面在后台运行,写了一个监控脚本,假设程序异常退出,那么可以自动重启。 shell脚本/usr/local/scripts/receve.sh内容: #!/bin/bash #funtion:keep receve.php running PHP=/usr/local/php5/bin/php PROGRAM=receve.php #start dameo $PHP /home/httpd/$PROGRAM >>/usr/local/scripts/phpshell/receve.out & chpid=$!; echo $chpid > /usr/local/s