Detailed instructions on how to use the AT and ATQ commands in Linux systems

Source: Internet
Author: User
Tags uppercase letter

At

At the specified time to execute the command.

-V outputs the version number on a standard error.

The-Q queue uses the specified queues. A queue is calibrated with a letter, and valid queues are calibrated from A to Z and from A to Z. The default queue for at is the A,batch default queue is B. The higher the alphabetical order of the queues, the more humility the queue runs (the lower the run level). The specified queue "=" is reserved for the queue where the currently running job is located. If a job is submitted to a queue that is marked with an uppercase letter, it is treated as if it were submitted to batch. If you specify a queue for ATQ, only the jobs in this specified queue are displayed.

-M sends a message to the user even if there is no output when the job completes.

-F file reads the job information from the file instead of the standard input.

-L equals to ATQ.

-D is equivalent to ATRM.

-V for ATQ, displays the complete job that has not been deleted in the queue, and for other commands, displays the time that the job will be executed. The time displayed is similar to the format "1997-02-20 14:50", but if the POSIXLY_CORRECT environment variable is set, the format is similar to "Thu Feb 20 14:50:00 1996".

-C connects the jobs listed in the command line and outputs to standard output.

Cases:

After 10 points, output 1111

The code is as follows:

[Zhangy@blackghost ~]$ at now + minutes

at> Echo 1111

At>

Job 3 at Fri APR 26 12:56:00 2013

Timed list at

The code is as follows:

[Zhangy@blackghost ~]$ At-l

3 Fri Apr 12:56:00 2013 a root

View the contents of a single at task

The code is as follows:

[Zhangy@blackghost ~]$ at-c 3

#!/bin/sh

# Atrun Uid=0 gid=0

# Mail Tnak 0

Umask 22

......... Omitted........

echo 1111

Delete at task

The code is as follows:

[Zhangy@blackghost ~]$ at-d 3

Atq

Cases:

View at task

The code is as follows:

[Zhangy@blackghost ~]$ at now + minutes

at> Echo 1111

At>

Job 3 at Fri APR 26 12:56:00 2013

The code is as follows:

[Zhangy@blackghost ~]$ ATQ

3 Fri Apr 12:56:00 2013 a root

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.