Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CRON

Status
Not open for further replies.

BenRussell

Programmer
Mar 12, 2001
243
US
This isnt really CGI related, but I was wondering how I could set a cron job on my server to execute every day and execute a script at /home/sites/home/web/Script.cgi

Thanks - Ben Russell
- President of Intracor Technologies (
 
on a Solaris box,

prompt> crontab -e <return>

will put you in a 'vi' style editor. Add a line like,

15 3 * * * /home/site/home/web/Script.cgi

and save it.

The parameters and their ranges are:
minute hour day-of-month month day-of-week
| | | | |
0-60 0-24 1-31 1-12 0=Sunday

So, the above entry would run at 3:15am every morning.

Do not edit your crontab directly with 'vi' or another editor.
It is just a text file, but it MUST be edited using
crontab -e.

There may be variations depending upon you OS.

HTH


keep the rudder amid ship and beware the odd typo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top