Thread: cmd line path?
View Single Post
Old 04-29-2004, 08:31 AM   #1
digitalbart2k
Green Mole
 
Join Date: Jan 2004
Posts: 3
cmd line path?

I am unable to index from the command line unless I switch to the directory in which spider.php is contained

this will work when I am in the /search/admin/ directory:

php -f spider.php http://www.domainname.com >/tmp/output 2>/tmp/erroroutput


this won't

/usr/bin/php -f /web/servers/domainname.com/search/admin/spider.php http://www.domainname.com > /tmp/phpdigg.log 2>&1

or this

php -f /web/servers/domainname.com/search/admin/spider.php http://www.domainname.com >/tmp/output 2>/tmp/erroroutput

I want to schedule a cron job so I will need the full path I assume.
Any ideas?
digitalbart2k is offline   Reply With Quote