ct任务添加与中控机批量后台操作

ct 任务
nohup sh ./bin/start.sh </dev/null >/dev/null 2>&1 &

中控机批量

for h in `get_hosts_by_path xxx`;do { ssh $h 'cd /home/map/anticraw_tmp && nohup /home/map/php-fpm/bin/php compute.php /home/map/lighttpd/log result & ' </dev/null >/dev/null 2>&1; } & done;

原文地址:https://www.cnblogs.com/zlingh/p/4555762.html