1. 每天凌晨1点20分清除/var/log/slow.log这个文件;
2. 每周日3点执行’/bin/sh /usr/local/sbin/backup.sh’;
3. 每月14号4点10分执行’/bin/sh /usr/local/sbin/backup_month.sh’;
4. 每隔8小时执行’ntpdate time.windows.com’;
5. 每天的1点,12点,18点执行’/bin/sh /usr/local/sbin/test.sh’;
6. 每天的9点到18点执行’/bin/sh /usr/local/sbin/test2.sh’;
答案:
1. 20 1 * * * echo “”>/var/log/slow.log
2. 0 30 * * 0 /bin/sh /usr/local/sbin/backup.sh
3. 10 04 14 * * /bin/sh /usr/local/sbin/backup_month.sh
4. 0 */8 * * * ntpdate time.windows.com
5. 0 1,12,18 * * /bin/sh /usr/local/sbin/test.sh
6. 0 9-18 * * * /bin/sh /usr/local/sbin/test2.sh