at Jobs in Linux

at is used to schedule the for a partition time or interval in other words. It is used only for one time or only for interval. at and batch read commands from standard input or a specified file which are to be executed at a later time.

At allows fairly complex time specifications, extending the POSIX.2 standard. It accepts times of the form HH:MM to run a job at a specific time of day. (If that time is already past, the next day is assumed.) You may also specify midnight, noon, or teatime (4pm) and you can have a time-of-day suffixed with AM or PM for running in the morning or the evening. You can also say what day the job will be run, by giving a date in the form month-name day with an optional year, or giving a date of the form MMDDYY or MM/DD/YY or DD.MM.YY or YYYY-MM-DD. The specification of a date must follow the specification of the time of day. You can also give times like now + count time-units, where the time-units can be minutes, hours, days, or weeks and you can tell at to run the job today by suffixing the time with today and to run the job tomorrow by suffixing the time with tomorrow.
For example, to run a job at 4pm three days from now, you would do at 4pm + 3 days, to run a job at 10:00am on July 31, you would do at 10am Jul 31 and to run a job at 1am tomorrow, you would do at 1am tomorrow.


at [-V] [-q queue] [-f file] [-mldbv] TIME


-l: Lists all jobs in the queue.
-d: Removes a job from the queue.
-f: Reads input from the file.
-m: Sends mail to the user when the job is complete.

View the currently queued jobs

at -l

Delete the job from the queue

at -d 1
atrm 1

Verify that the job is truly gone


To view the job details

at -c 2

Powered by k2schools
Skip to toolbar