PDA

View Full Version : Fork in background during the spidering...


BulForce
01-18-2005, 04:07 PM
I wish to see ability to fork the spider in background during the spidering.

jmitchell
01-18-2005, 06:22 PM
can you explain more?

BulForce
01-19-2005, 04:58 AM
Okay
lets say that i type in the shell #php -f spider.php sites.txt >> sites.log

And then close the connection with the host, but spider keep indexing.

Charter
01-19-2005, 05:14 AM
php -f spider.php sites.txt >> sites.log &

jmitchell
01-19-2005, 08:17 AM
so charter, if I cd to the phpdig/admin dir, and then do the code you put, I can close down my ssh connection, and it will keep spidering?

btw, after you reply you will have 2,000 posts - congrats!

jmitchell

Charter
01-19-2005, 08:53 AM
Run in background:

php -f spider.php sites.txt >> sites.log &

Run in background and log off:

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

jmitchell
01-19-2005, 11:59 AM
ok, thanks