- 论坛徽章:
- 0
|
回复 14# wenhq - root@iotdemo:/var/spool/cron/crontabs# ll
- total 12
- drwx-wx--T 2 root crontab 4096 May 2 10:02 ./
- drwxr-xr-x 5 root root 4096 Sep 24 2012 ../
- -rw------- 1 ok988 crontab 1429 May 1 19:49 ok988
- root@iotdemo:/var/spool/cron/crontabs# file ok988
- ok988: UTF-8 Unicode English text
- root@iotdemo:/var/spool/cron/crontabs# more ok988
- # DO NOT EDIT THIS FILE - edit the master and reinstall.
- # (/tmp/crontab.KxeMx8/crontab installed on Wed May 1 19:49:15 2013)
- # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
- # Edit this file to introduce tasks to be run by cron.
- #
- # Each task to run has to be defined through a single line
- # indicating with different fields when the task will be run
- # and what command to run for the task
- #
- # To define the time you can provide concrete values for
- # minute (m), hour (h), day of month (dom), month (mon),
- # and day of week (dow) or use '*' in these fields (for 'any').#
- # Notice that tasks will be started based on the cron's system
- # daemon's notion of time and timezones.
- #
- # Output of the crontab jobs (including errors) is sent through
- # email to the user the crontab file belongs to (unless redirected).
- #
- # For example, you can run a backup of all your user accounts
- # at 5 a.m every week with:
- # 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
- #
- # For more information see the manual pages of crontab(5) and cron(8)
- #
- # m h dom mon dow command
- SHELL=/bin/bash
- PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
- #每天4:00执行mysql备份
- 0 4 * * * ~/mysql_backup/mysql_backup.sh >> /tmp/mysql_backup.log
- #每6小时执行磁盘空间监测,超过预警给管理员发邮件
- 0 */6 * * * ~/monitor_disk.sh >> /tmp/monitor_disk.log
- root@iotdemo:/var/spool/cron/crontabs#
复制代码 |
|