at
syntax at [-f file] time or at [options]
in the first form,enter commands to the at queue for execution at time. at allows fairly complex time specifications. it accepts times of the form HH:MM to run a job at a specific time of day.(if that time is aready past, the next day is assumed) you may also spcify midnight, noon, or teatime(4 pm), and you suffix a time of day with am or pm for running in the morning or evening. you can also say what day the job will be run by giving a date in month-day form, with the year being optional,or by giving a date in MMDDYY, MM/DD/YY or DD.MM.YY form. the date specification must follow the time-of-day specification. you can also give times like now+count time-units, where time-units can be minutes, hours, days, or weeks, you can tell at to run the job today by suffixing the time with today, and you can tell it to run the job tomorrow are taken from the file, otherwise at will prompt the user for commands.
in the second form, list or delete jobs from the at queue.
-d job1[,job2,....]
delete jobs from the at queue by number(same as the atrm command)
-l list items in the at queue(same as the atq command)
example: run myprogram once at 6:15 pm tommorrow:
$at 6:15pm tomorrow
at>myprogram
at>^d
the ^d indicate that the typed Ctrl-D
example 2
run commands that are listed in the file command_list at 9 p.m two days from now:
$at -f command_list 9pm+2 days
list items in the at queue(root sees all users' entries) $at -l remove job number 5 from the at queue: $at -d 5
|