At command for regularly executing a program in Linux

Source: Internet
Author: User

/*************************************** ******************************
* Author: Samson
* Date: 04/29/2014
* Test platform:
* 3.11.0-12-generic # 19-Ubuntu
* GNU bash, version 4.2.45
**************************************** ****************************/

In windows, there is a fairly easy-to-use command: at, its mission is to be able to regularly execute a task, for example, when downloading a movie on a dark night, but I don't want to keep it, but it's impossible to keep it. If I don't shut down, I'm more sorry for humans. at that time, I can use the at command to call it shut down at, so the command is probably as follows: at 3: 00 shutdown-s-f

In windows, enter at/In the cmd black box /? Let's take a look at the help. Now there is no windows environment. You can't cut the picture.

Of course, Linux also has such a command called at, which is similar to the at command under win. The specific parameters are different, and the power of at in Linux is not comparable to that of win, example:

/Usr/bin/at-f/home/fuck/test. sh now + 2 min

In this example, run/home/fuck/test after 2 minutes of the current time. sh script program. For more details about the at command in Linux, please install the Linux release and enter man at in the command line.

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.