Cron Job (Command Line) *SOLVED*
Posted 15 October 2006 - 04:42 AM
I think I only need the path of the file...not 'when' I want it to run. Because below where I enter the command line if gives me choices on if I want to run it every hour, day, month, etc.
I have copied and pasted an example path and replaced all the info with mine, but still couldn't get it to work. The scripts name that I am trying to run is called 'cron.php' and it is in a folder called 'public_html'.
How would I make a command line or path to that file? If I left anything out, just let me know. Thanks guys =)
Posted 15 October 2006 - 06:24 AM
How would I make a command line or path to that file?
This really depends on where your script is in relation to root. Something like....
may come close but really, your host should provide better docs. You may also need to put a shebang in the script to let the server know what to run the script with. eg;
#!/usr/bin/php <?php // script here ?>[/code]
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users