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?
|