cat run-data.sh
#!/bin/bash
kill -9 `ps -ef|grep "x/SubSystemIp" |awk ‘{print $2}‘ ` 1>/dev/null 2>&1
cd /data/www/cdnboss && pwd
for((i=1;i<=18;i++))
do
`nohup php script.php x/SubSystemIp/t${i} 1> /dev/null &`
sleep 1
done
本文出自 “开发与运维” 博客,谢绝转载!
原文:http://yeqing.blog.51cto.com/3159086/1787055