This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
aix:aix_crontab [2024/06/05 16:59] manu [Cron log] |
aix:aix_crontab [2025/04/29 15:59] (current) manu |
||
---|---|---|---|
Line 17: | Line 17: | ||
[root@aixna001]/root> crontab -l lpar2rrd | [root@aixna001]/root> crontab -l lpar2rrd | ||
0 1 * * * /usr/bin/perl /opt/lpar2rrd-agent/lpar2rrd-agent.pl lnxmonitor01 > /var/tmp/lpar2rrd-agent.out 2>&1 | 0 1 * * * /usr/bin/perl /opt/lpar2rrd-agent/lpar2rrd-agent.pl lnxmonitor01 > /var/tmp/lpar2rrd-agent.out 2>&1 | ||
+ | 40 18 * * 1,2,3,4,5 ( . /home/lpar/.bash_profile ; /myscript/script01.sh ) >/dev/null 2>&1 | ||
</cli> | </cli> | ||
Line 25: | Line 26: | ||
</cli> | </cli> | ||
+ | Fields description | ||
+ | * minute: 0 through 59 | ||
+ | * hour: 0 through 23 | ||
+ | * day_of_month: 1 through 31 | ||
+ | * month: 1 through 12 | ||
+ | * weekday: 0 through 6 for Sunday through Saturday | ||
+ | FIXME | ||
+ | On linux (NOT AIX) you can also use for very 10 minutes, */10 | ||
+ | 0,10,20,30,40,50 6 * * 1-5 /usr/bin/calendar | ||
+ | */10 * * 1-5 /usr/bin/calendar | ||
==== Cron log ==== | ==== Cron log ==== | ||
Line 69: | Line 79: | ||
For example: | For example: | ||
This example would set the cron queue to a maximum of 200 jobs, with a nice value of 2, and a wait time of 60 seconds. | This example would set the cron queue to a maximum of 200 jobs, with a nice value of 2, and a wait time of 60 seconds. | ||
- | <cli> | + | <cli prompt='#'> |
root@orathal-test /var/tmp# cat /var/adm/cron/queuedefs | root@orathal-test /var/tmp# cat /var/adm/cron/queuedefs | ||
c.200j2n60w | c.200j2n60w |