Linux Learning -16-Scheduled Tasks (crontab)

Source: Internet
Author: User
Tags mrtg

At disposable

Crontab Cycle of tasks

At

/ETC/INIT.D/ATD restart

Chkconfig ATD on Boot

/etc/at.allow White List

/etc/at.deny blacklist

Actual Operation P588

Crontab

/etc/cron.allow

/etc/cron.deny

CRONTAB-E Editing a scheduled task (cron for users)

0 * * * mail Dmtsai-s "at" </HOME/DMTSAI/.BASHRC

Time-sharing Weekly command

0-59 0-23 1-31 1-12 0-7 P592

*/5 * * * */home/dmtsai/test.sh

/home/dmtsai/test.sh required every five minutes

* * 5 Mail [email protected]

Send a message every Friday 4:30

Crontab-l Query

Crontab-r Delete All Tasks

Delete a bar to edit with CRONTAB-E


System configuration file:/etc/crontab

Command patterns

* * * * * Dmtsai mail-s "testing" Kiki

The Mail command is executed every hour as the user of Dmtsai.

*/5 * * * * Root Run-parts/root/runcron

Execute/root/runcron executable every five minutes

*/5 * * * * root/bin/mrtg/etc/mrtg/mrtg.cfg

Perform the/BIN/MRTG in/etc/mrtg/mrtg.cfg every five minutes

Anacron P597


Linux Learning -16-Scheduled Tasks (crontab)

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.