at
Check
Check
To list all jobs for the invoking user...
at -l
or
atq
To list jobs for all users (as root)...
atq
or a specific user (as root)
atq myuser
sort the output...
atq -n myuser
To print just a count of the number of jobs...
atq -n
Cancel
Cancel
To remove a job from the schedule...
at -r jobid
or
atrm jobid
To remove all jobs for the current user...
atrm -a
to remove all jobs for all users (as root)...
atrm -a
or a specific user...
atrm -a myuser
to force removal...
atrm -af
to prompt y/n for each job...
atrm -ai
Schedule
NOTE: In the examples below, EOT refers to the "End Of Transmission" character, generally CTRL-DSchedule
Run a backup now...
at now
/u01/dba/rman/rmantsm.ksh 0 >/u01/dba/rman/logs/rman.$(date +""\%d"").log 2>&1
EOT
Some other time options...
at 1945
at 1945 tomorrow
at 1945 May 9
at 1945 next day
at 1945 Saturday
at 7:45 pm
at now + 11 hours
at midnight
at noon