View Single Post
Old 07-01-2004, 12:17 AM   #4
jdc32
Green Mole
 
Join Date: Jun 2004
Posts: 11
hmmm,.... after thinking, the cron is not really good....for my problem:

10 * * * * ps -ef | grep 'php -f spider.php' | awk '{print $2}' | xargs kill -9


i start any 3 minutes a new spider and shoult kill after 10 minutes,... so i have started more than 1 spider... this cron kill all my spider,.. thats no good.

can i kill via shell all php spiders which has a running time from 10 minutes?
jdc32 is offline   Reply With Quote