Thursday, October 19, 2017

Crontab in aix, concepts and commands in aix?

Crontab in aix, concepts and commands in aix?



v  Deamon - cron
v  Started by - /etc/inittab
v  startup entry - cron:2:respawn:/usr/sbin/cron (or)  cron:2:respawn:/etc/cron
v  file - crontab
v  file location - /var/spool/cron/crontabs/crontab
v  log - /var/adm/cron/log  (error messages about crontab is recorded here)
v  How to list - crontab -l
v  How to edit - crontab -e
v  How to remove - crontab -r
v  Allow - /var/adm/cron/log/cron.allow  (If the file exists, user id must be in the file before it can run cron jobs)
v  Deny - /var/adm/cron/log/cron.deny (If the user is not denied the user may submit the cron jobs)
v  process -  ps -eaf|grep -i cron


v  A crontab entry consists of six fields:

* * * * * Command

The minute (0 through 59)
The hour (0 through 23)
The day of the month (1 through 31)
The month of the year (1 through 12)
The day of the week (0 through 6 for Sunday through Saturday)
The command to run