Linux timed Task 2-at command

Source: Internet
Author: User

Timed execution of commands:

[[email protected] ~]# at now + 1 minute   //one minute to perform the following tasks at> date >>/tmp/test_date.log     

Timed Script Execution:

[[email protected] ~]# at now + 1 minuteat>/root/test.shat> <eot>job 5 at 2016-04-12 22:40

Common uses for AT commands:

At 2pm + 2 days/root/test.sh//2 days, 2 o'clock in the afternoon execute test.sh script

At 10am + 2 weeks/root/test.sh//2 weeks after 10 o ' test.sh script in the morning

At 12am tomorrow/root/test.sh//execute test.sh script at 12 o ' Day in the morning

At 00:00 04/15/2016/root/test.sh//April 15, 2016:00 execute test.sh

At now + 5 hours/root/test.sh

At now + minutes/root/test.sh

At-l View current Tasks

AT-D 4 Delete at task 4

AT-V Display the task preset run time

At-c Show All Tasks

Linux timed Task 2-at command

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.