AIX Scheduling commands

root's picture

To list the crontab entries:
#crontab -l

To edit the crontab entries:
#crontab -e

To copies the entries of crontab to crontab.txt file:
#crontab -l > crontab.txt

To remove all crontab entries:
#crontab -r

To list the submission time:
#crontab -v

File containing users who allowed cron service:
#/var/adm/cron/cron.allow

File containing users denied cron service:
#/var/adm/cron/cron.deny

To list the jobs scheduled via at command:
#at -l

To remove the scheduled job root.dofsdofsd.69:
#at -r root.dofsdofsd.69

File containing users who allowed at service:
#/var/adm/cron/at.allow

File containing users denied at service:
#/var/adm/cron/at.deny

To run the command when the system load permits:
#batch

To list all the jobs submitted by user gzuser:
#atq gzuser

To start a job with at:

#at now [font=Verdana][color=green]<- [ENTER][/color][/font]
/some/script.sh [font=Verdana][color=green]<- [ENTER][/color][/font]
[font=Verdana][color=green]<- CTRL+d[/color][/font]
job 4 at Sat Oct 15 21:15:00 2011
#

How to list your background jobs:

core:~# jobs
[1]   Running                 sleep 1000 &
[2]   Running                 sleep 1000 &
[3]-  Running                 sleep 1000 &
[4]+  Running                 sleep 1000 &

How to kill a background job:

core:~# kill %2
[2]   Terminated              sleep 1000

Thou shalt not steal!

If you want to use this information on your own website, please remember: by doing copy/paste entirely it is always stealing and you should be ashamed of yourself! Have at least the decency to create your own text and comments and run the commands on your own servers and provide your output, not what I did!

Or at least link back to this website.

Recent content

root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root