$at command

ODOC: About at command

Schedules a command to be ran at a particular time, such as a print job late at night.


at -> executes commands at a specified time.

atq -> lists the user’s pending jobs, unless the user is the superuser; in that case, everybody’s jobs are listed. The format of the output lines (one for each job) is: Job number, date, hour, job class.

atrm -> deletes jobs, identified by their job number.

batch -> executes commands when system load levels permit; in other words, when the load average drops below 1.5, or the value specified in the invocation of atrun.

at [-c | -k | -s] [-f filename] [-q queuename] [-m] -t time [date] [-l] [-r]

-c -> C shell. csh(1) is used to execute the at-job.

-k -> Korn shell. ksh(1) is used to execute the at-job.

-s -> Bourne shell. sh(1) is used to execute the at-job.

-f filename -> Specifies the file that contains the command to run.

-m -> Sends mail once the command has been run.

-t time -> Specifies at what time you want the command to be ran. Format hh:mm. am / pm indication can also follow the time otherwise a 24-hour clock is used. A timezone name of GMT, UCT or ZULU (case insensitive) can follow to specify that the time is in Coordinated Universal Time. Other timezones can be specified using the TZ environment variable. The below quick times can also be entered:

midnight -> Indicates the time 12:00 am (00:00).
noon -> Indicates the time 12:00 pm.
now -> Indicates the current day and time. Invoking at – now will submit submit an at-job for potentially immediate execution.

date -> Specifies the date you wish it to be ran on. Format month, date, year. The following quick days can also be entered:

today -> Indicates the current day.
tomorrow -> Indicates the day following the current day.

-l -> Lists the commands that have been set to run.

-r -> Cancels the command that you have set in the past.


praveen@praveen-desktop:~$ at -l =

1	Tue Jul 19 07:35:00 2011 b praveen

With Regards,
S. Praveen


Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s