$ whatis atrm

at(1), batch(1), atq(1), atrm(1) - queue, examine, or delete jobs for later execution

Examples:


First I use the command 'at' to submit a job to run one minutes from now. In the example below the common two simple commands are 'pwd and ls -l' just for demonstration purpose. You can run any valid UNIX commands or scripts instead of the two simple commands I used here. The syntax I used to run more than one commands from command line is the HERE syntax which in this case I used the end of file 'EOF' after the characters '<<' to start my HERE, and 'EOF' again to end my HERE syntax/documentation.

$ at now + 1 minute << EOF

>pwd

> ls -l

> EOF

commands will be executed using /bin/bash

job 1294552482.a at Sat Jan 8 21:54:42 2011

I was given the output above to tell me the job number for my at command and I run the command 'atq' to check the queue for my 'at' commands.

$ atq

Rank Execution Date Owner Job Queue Job Name

1st Jan 8, 2011 21:54 wahid 1294552482.a a stdin

I run the command 'atrm' to remove this new at command that I just submitted since I don't need to run

any commands and I just wanted to demo the 'atrm' command.

$ atrm 1294552482.a

1294552482.a: removed

$ atq

no files in queue.

Please click on "man atrm " to see the Manual Page for this command.


Previous Home Page Next



Contact us      |      About us      |      Term of use      |       Copyright © 2000-2024 MyWebUniversity.com ™