How Linux uses Crontab to schedule daily work

  
                

On Linux systems, Crontab can be used for scheduled tasks or for tasks that are performed periodically. This way you can use Crontab to schedule some daily tasks so that they are automatically executed at some time each day. This article will introduce how Linux uses Crontab to schedule daily work.

1. What is the Crontab?

Periodically handles to-do daemons, similar to mission plans.

2.Crontab command parsing.

Example:

0 0 * * 1-5 cd /home/hiperry; /shutDwon.sh 》. /logs/shutDwon.log 2》&1

-- Perform a custom shutdown script every night at 12 o'clock and write log information to the specified log file.

Command Resolution:

# . ---------------- Minutes (0 - 59)

#

Copyright © Windows knowledge All Rights Reserved