Linux---> Scheduled tasks

Source: Internet
Author: User

Linux timed Task crontab
    • Cron Service
      • Cron is a timed execution tool under Linux that can run a job without human intervention.
      • Service Crond Start//Startup services
        Service Crond stop//Shutdown services
        Service Crond restart//Restart services
        Service Crond Reload//Reload Configuration
        Service Crond Status//view services statuses
    • /var/spool/cron/
      • This directory is for each user including root crontab task, each task is named after the creator, such as Tom built crontab task corresponding to the file is/var/spool/cron/tom. Generally, a user has only one crontab file at most.
      • Crontab-e perform a text editor to set the schedule table
        Crontab-r: Delete the current schedule table
        Crontab-l: List the current schedule
    • /etc/crontab
      • This file is responsible for arranging the crontab of maintenance systems and other tasks developed by the system administrator.
    • Format
      • Format of the crontab file: M H d M D cmd.
        M: Minutes (0-59).
        H: Hours (0-23).
        D: Day (1-31).
        M: Month (1-12).
        D: Day of the Week (0~6,0 is Sunday).
Ps:
    • Crontab set the first few minutes, hours, days, months, weeks
    • The command in the shell uses an absolute path. You can which to see the corresponding named path

Linux---> Scheduled tasks

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.