PDA

View Full Version : prblem with cron


franklin74
10-05-2004, 02:35 AM
sorry for my poor english, i have tried to set a cronjob to automatic spider some site, but all the time the job is done i've received the mail from my hosting with "No input file specified."

i try with:
/usr/bin/php -f /home/franza/public_html/cerca/admin/spider.php all
/usr/bin/php -f /home/franza/public_html/cerca/admin/spider.php cronlist.txt
/usr/bin/php -f /home/franza/public_html/cerca/admin/spider.php
php -f /home/franza/public_html/cerca/admin/spider.php all
php -f /home/franza/public_html/cerca/admin/spider.php
/usr/bin/php -f spider.php cronlist.txt

my config is settted:

define('ABSOLUTE_SCRIPT_PATH','/home/franza/public_html/cerca'); // full path up to but not including admin dir, no end slash



if ((!isset($relative_script_path)) || (($relative_script_path != "/home/franza/public_html/cerca") &&

($relative_script_path != "..") && ($relative_script_path != ABSOLUTE_SCRIPT_PATH))) {

// echo "\n\nPath not recognized!\n\n";

exit();

}

my spider.php is here
/home/franza/public_html/cerca/admin/spider.php
thanks in advance....
Franklin

franklin74
10-06-2004, 03:09 PM
help Please.....

vinyl-junkie
10-06-2004, 06:13 PM
Try this:php -f /home/franza/public_html/cerca/admin/spider.php http://www.yoursite.comreplacing of course yoursite.com with your domain name.

franklin74
10-07-2004, 07:02 AM
first of all: THANKS a lot!!!
now i haven't problem like "not input file select" yet. it was a server error
so i try with:
/usr/bin/php -f /home/franza/public_html/cerca/admin/spider.php cronlist.txt

cronlist.txt contain 3 lines
http://www.mydomain.com
http://www.anotherexaple.com
http://www.thirdexample.com

but nothing happen

i try also
/usr/bin/php -f /home/franza/public_html/cerca/admin/spider.php http://www.domain.com

but nothing happen to.
what's the right sintax for this command??

Thanks in advance and sorry for my english :)

Charter
10-07-2004, 11:40 PM
Do the following and see what it says:

/usr/bin/php -f /home/franza/public_html/cerca/admin/spider.php http://www.domain.com 2>&1

franklin74
10-08-2004, 07:56 AM
/usr/bin/php -f /home/franza/public_html/cerca/admin/spider.php http://www.mydomain.com 2>&1
www.mydomain.com not spidered

/usr/bin/php -f /home/franza/public_html/cerca/admin/spider.php http://www.mydomain.com > spider.log 2>&1
an empty log file but www.mydomain.com not spidered

:( :( please help