????/opt/zhangyan.sh???????£? view plainprint:

#??/bin/sh
echo $(date -d "today" +"%Y-%m-%d %H??%M??%S") $1 >> /opt/zhangyan.log
sleep_time=$(expr $RANDOM % 4 + 1)
sleep $sleep_time

??????/opt/zhangyan.sh???????????????????????????????????е?$(expr $RANDOM % 4 + 1)????????1??5???????????????????????1??5????????1??????????????????????????????2??6??????????????????????????1??5????

--------------------------------------------------------------------------------

??????г???

/usr/local/php/bin/php /opt/zhangyan.php
??/usr/local/php/bin/php??PHP???????????·????

??????/opt/zhangyan.sh???μ????????????к????У?

head -n 1 /opt/zhangyan.log
2007-11-16 07??54??13 http??//blog.s135.com
tail -n 1 /opt/zhangyan.log
2007-11-16 07??54??18 http??//blog.s135.com

?????????????500?????????????1000??????????5??????????????????????????????????????????1?????????1000?????16?????????ɡ?

--------------------------------------------------------------------------------

????PS????PHP???????Linux?????????????

nohup /usr/local/php/bin/php /opt/zhangyan.php 2>&1 > /dev/null &

??????nohup????????????????????????г???“2>&1 > /dev/null”???????????????????????????&???????????С???