Need explanation on the cron script

jchellap

Member
Hi All,

I was told to create cron job in MFGPRO and we are using Unix OS.

When I checked the existing crons it was like below

00 6 * * 2-6 /data/programs/mfg90v83e/scripts/batch/ajusinv.real.

I know the highlighted part defines the time and execution days of the cron job.

However, I am not clear. Can anyone give explanation on this highlighted part alone please? Thanks in advance.
 
http://publib.boulder.ibm.com/infocenter/aix/v6r1/index.jsp?topic=%2Fcom.ibm.aix.cmds%2Fdoc%2Faixcmds1%2Fcrontab.htm

[h=4]The crontab File Entry Format[/h]A crontab file contains entries for each cron job. Entries are separated by newline characters. Each crontab file entry contains six fields separated by spaces or tabs in the following form:

minute hour day_of_month month weekday commandThese fields accept the following values:
[TABLE="width: 100%"]
[TR]
[TD="width: 20%"]minute[/TD]
[TD="width: 80%"]0 through 59[/TD]
[/TR]
[TR]
[TD]hour[/TD]
[TD]0 through 23[/TD]
[/TR]
[TR]
[TD]day_of_month[/TD]
[TD]1 through 31[/TD]
[/TR]
[TR]
[TD]month[/TD]
[TD]1 through 12[/TD]
[/TR]
[TR]
[TD]weekday[/TD]
[TD]0 through 6 for Sunday through Saturday[/TD]
[/TR]
[TR]
[TD]command[/TD]
[TD]a shell command[/TD]
[/TR]
[/TABLE]
 
Back
Top