cron job

CFMX

Perch
Greetings,

What command do I put into the cron job section to pull a PHP file?

Thank you for your time.
 
What the heck is a cron job? Sounds like a unix perversion before I converted to the gospel of Win-Doze :)

I can help with windows scheduled tasks.
 
Yeah same thing as scheduled tasks for windows only for the unix/linux os. There is some command used to pull data from a website and I don't think it is "wget".
 
CFMX said:
Yeah same thing as scheduled tasks for windows only for the unix/linux os. There is some command used to pull data from a website and I don't think it is "wget".
I normally use wget for such purposes, but I had never tried it on a JodoHost server.
Seems permission is denied on wget. There are ways around that, but I'm not sure JodoHost would appreciate me posting them ;)

If your PHP script is on the webserver itself, it would be best to just call the PHP script directly. You would need to know (ask) the exact path of the PHP interpreter. Assuming it's accessible, you would be able to make a PHP shell script by using

PHP:
#!/usr/bin/php4

echo "Hello world!";

Unfortunately the above path doesn't seem to be correct, so I can't really test it.
 
For future reference and anyone who wants to setup a cron the following works:
Code:
curl -s -o /dev/null [url]http://www.domain.com/script.php[/url]
 
Back
Top