Saturday, 6 April 2013

AIX Scheduling commands

Cron How to Command
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
To run the command when the system load permits: #batch
To list all the jobs submitted by user umuser: #atq umuser
To start a job with at:
at now <- [ENTER]
/some/script.sh <- [ENTER]
<- CTRL+d
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

www.unixmantra.com

0 blogger-disqus:

Post a comment