How do I schedule a cron job?

How do I schedule a cron job?
Answer
Cron Jobs Examples
  1. Run a command at 15:00 on every day from Monday through Friday: 0 15 * * 1-5 command.
  2. Run a script every 5 minutes and redirected the standard output to dev null , only the standard error will be sent to the specified e-mail address:
    [email protected]
    */5 * * * * /path/to/script.sh > /dev/null.
17 февр. 2020 г.
 

Tìm kiếm

Back
Top