Cron task

luizccm

Verified User
Joined
Oct 24, 2004
Messages
41
Location
Brazil, Brasilia D.F
Hi,
I am not obtaining to configure the service of the task cron. Already I tried some lines of command, but without success. Somebody could inform which would be the command line, for the following way in the directory calendar:

/topgync/public_html/calendario/sechedule.php

Regards,
Luiz Cláudio

:confused:
 
Try adding the path to the PHP executable in front of it :)


[path to php]/php /topgync/public_html/calendario/sechedule.php

It then works like a charm ;)
 
/usr/local/bin/php -q /path/to/script.php
Worked for me :)

(-q Quiet-mode. Suppress HTTP Header output.)
 
Big question

1 - php/home/topgync/public_html/banners/maintenance/maintenance.php

1 is correct

or


2 is correct

wget -q /home/topgync/public_html/banners/maintenance/maintenance.php



Regards,
Luiz Cláudio
 
Neither, not sure if using wget will work, but that would be through apache and not locally

Use the php binary instead...
/usr/local/bin/php -q /home/topgync/public_html/banners/maintenance/maintenance.php

And you shouldn't put it in a public directory, anyone could run it...
 
Back
Top