PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 01-18-2005, 05:07 PM   #1
BulForce
Orange Mole
 
Join Date: Aug 2004
Location: none
Posts: 33
Fork in background during the spidering...

I wish to see ability to fork the spider in background during the spidering.
BulForce is offline   Reply With Quote
Old 01-18-2005, 07:22 PM   #2
jmitchell
Orange Mole
 
Join Date: Dec 2004
Location: Tennessee
Posts: 60
can you explain more?
__________________
60,000 pages indexed!!!!! http://www.sharemylink.com
jmitchell is offline   Reply With Quote
Old 01-19-2005, 05:58 AM   #3
BulForce
Orange Mole
 
Join Date: Aug 2004
Location: none
Posts: 33
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.
BulForce is offline   Reply With Quote
Old 01-19-2005, 06:14 AM   #4
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Code:
php -f spider.php sites.txt >> sites.log &
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 01-19-2005, 09:17 AM   #5
jmitchell
Orange Mole
 
Join Date: Dec 2004
Location: Tennessee
Posts: 60
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
__________________
60,000 pages indexed!!!!! http://www.sharemylink.com
jmitchell is offline   Reply With Quote
Old 01-19-2005, 09:53 AM   #6
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
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 &
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 01-19-2005, 12:59 PM   #7
jmitchell
Orange Mole
 
Join Date: Dec 2004
Location: Tennessee
Posts: 60
ok, thanks
__________________
60,000 pages indexed!!!!! http://www.sharemylink.com
jmitchell is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mutilple spider via fork() ragnoroc Mod Requests 1 05-18-2004 03:21 AM
how to run spider.php in background mode 123av How-to Forum 1 04-10-2004 12:29 PM
background color ultraman How-to Forum 3 02-27-2004 07:53 PM


All times are GMT -8. The time now is 08:53 AM.


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