Linux's crond task scheduling

A, Schematic

    

     

 Second, an overview

   Task scheduling: it refers to the specific command or program execution system at a time

   Task scheduling Category:

      1, the system works: Some important work cycle of execution. Such as virus scanners, etc.

      2, individual users work: Individual users may wish to perform procedures, such as database backup mysql.

Third, the basic grammar

    crontab [options]

  Common options

  

 Fourth, Quick Start

  1, task requirements

    Setting task schedule file: / etc / crontab

    Set personal task scheduling: crontab -e command execution

    Then enter the task to the schedule file

      Such as: * / 1 * * * * ls -l / etc / >> /tep/to.txt

      This means that every hour every minute of the ls -l / etc / >> /tep/to.txt command

   2, the following steps

    1) crontab  -e

    2)  */1 * * * * ls  -l  /etc  >>  /tep/to.txt

    3) When the execution after save and exit.

    4) every minute of the call will be automatically ls -l / etc >> /tep/to.txt

   3, detailed description Parameter

      

    

       

Guess you like

Origin www.cnblogs.com/zyc-blogs/p/11920011.html