shell 守护进程

来源:互联网 发布:java好一点的培训机构 编辑:程序博客网 时间:2024/05/11 01:02

checkDeviceOutLine.sh 每个5秒检查

#!/bin/bash

echo /qinlin/workerman/
while ((1));
do
php checkDeviceOutLine.php
sleep 5

done


以守护进程方式运行

nohup ./checkDeviceOutLine.sh &

0 0