PDA

View Full Version : How To stop spider by shell command ?


noel
10-30-2005, 05:05 PM
How To stop spider by shell command ?

How to know if there is spider that is crawling in memory, using shell command ?

Is it possible to put on the spider whit putty shell software, and close putty ?
Or when I close putty the spider stop ?

Thank you


Noël

Charter
11-01-2005, 04:04 PM
How To stop spider by shell command ?

How to know if there is spider that is crawling in memory, using shell command ?
Check out this (http://www.phpdig.net/forum/showthread.php?t=872) thread, as there is a command, broken down by explanation, in post two of that thread.

Is it possible to put on the spider whit putty shell software, and close putty ?
Or when I close putty the spider stop ?
To run a process in the background, check out this (http://www.phpdig.net/navigation.php?action=doc#toc7) section of the documentation, and look at the last paragraph of that section.

noel
11-02-2005, 10:45 AM
Hi Charter, Thank you for your replies ;)
For the first it is OK, but for the second answer if I put & at the end of the line commande, putty gives the hand immediately but if I close putty it stops the spider ;(

Charter
11-02-2005, 11:24 AM
Use nohup in front and & in back:

nohup command &

Where command is what you want:

nohup php -f spider.php links.txt > log.txt &

noel
11-03-2005, 01:06 PM
that is fine thank you ;)