At command and configuration in Linux

Source: Internet
Author: User


In Linux, the at command and the t command allow the user to submit a job to the c r o n daemon to run the job at a later time. The later time may be 1 0 m I n or a few days later. If you want to run it after one month or longer, you 'd better use the c r o n t a B file. Once a job is submitted, the t command retains all the current environment variables, including the path. Unlike c r o n t a B, only the default environment is provided. All outputs of the job will be sent to the user by email. Unless you have redirected the output, most of the time it is redirected to a file. Like c r o n t a B, the root user can use a t in the/e t c directory. a l o w and a t. d e n y file to control which users can access www.2cto.com

Enter the user name .. You can use the t command to submit a job in several different forms. You can use the command line or a t command prompt. Generally, when I submit several lines of system commands, I use the t command prompt method, and when I submit the s h e l script, I use the command line method. If you want to submit several lines of commands, follow the t command with the date/time and press Enter. Then, enter the t command prompt, enter the corresponding command one by one, and then press '<c t r l-D>' to exit. The following is an example:

<E o t> is <c t r l-D>. In System 2: 1 0, a simple f I n d command is executed. You should have noticed that the job I submitted is assigned a unique identifier job 8. After this command is completed, all results will be sent to me in the form of an email. The following is a part of the email I intercepted:

Author luolunz

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.