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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to set a crontab job to run every 3 hours? 1

Status
Not open for further replies.

vstoices

Programmer
May 14, 2003
1
US
how to set a crontab job to run every 3 hours?
You can do it every hour on the hour, but how can be done to run something every 3 hours?
 
This syntax is not accepted on my system (AIX).

Another solution is to specify the hours of execution.
In the following example the command will run every 3 hours since midnight:

0 0,3,6,9,12,15,18,31 * * * command

Jean Pierre.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top