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

Automate Jobs Per Half-Hour 1

Status
Not open for further replies.

majorbroncosfan

Programmer
Feb 23, 2001
121
US
I am trying to automate a script to run every day every 1/2-hour. I noticed that with crontab, it is possible for it to run daily at a specified time, but doesn't not have any more granular control.

Does anybody have any ideas?

 
man crontab

A crontab file consists of lines of six fields each. The
fields are separated by spaces or tabs. The first five are
integer patterns that specify the following:

minute (0-59),
hour (0-23),
day of the month (1-31),
month of the year (1-12),
day of the week (0-6 with 0=Sunday).


So for every 30 minutes of everyday it would be:

30 * * * * * script
 
um - that would be every hour on the half-hour (30 minute) mark. to run a script every half-hour you would need this:
0,30 * * * * * script

Cheers,

Einstein47
(Trouble is a sieve through which we sift our acquaintances. Those too big to pass through are our friends. - Arlene Francis)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top