PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   Fork in background during the spidering... (http://www.phpdig.net/forum/showthread.php?t=1757)

BulForce 01-18-2005 04:07 PM

Fork in background during the spidering...
 
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

Code:

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:
Code:

php -f spider.php sites.txt >> sites.log &
Run in background and log off:
Code:

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

jmitchell 01-19-2005 11:59 AM

ok, thanks


All times are GMT -8. The time now is 06:12 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.