看板FreeBSD
标 题Re: 请教crontab与root收信
发信站小鹿鹿 BBS (Thu Mar 17 21:25:03 2005)
转信站ptt!ctu-reader!news.nctu!abpe.org
※ 引述《[email protected] (Hinet准备停用了)》之铭言:
> 请教一下 我设定了以下的crontab
> 0 1,13,19 * * * /usr/cvsup -g -L 2 ports-supfile 1>/dev/null
> 10 */3 * * * /usr/sbin/ntpdate -s 210.59.157.10 1>/dev/null
> 0 3,6,11,13,18,22 * * * /home/rong/mysql.backup 1>/dev/null
> 35 */4 * * * /home/rong/homewww/awstats/wwwroot/cgi-bin/awstats.pl -config=fsnli
> 0 */6 * * * /usr/local/etc/logcheck.sh 1>/dev/null
> 0 4 * * * /root/backup2.sh 1>/dev/null
> 我是希望 当他完成工作後 不要寄信给root
> 只有工作有问题时 才寄给root
> 请问我的语法有错吗
> 谢谢
sh/bash 用:
blah > /dev/null 2>&1
csh/tcsh 用:
blah >& /dev/null
--
Resistance is futile.
http://gslin.org/ & <
[email protected]>
--
※ Origin: 邪恶小鹿鹿 <Deer.twbbs.org> ◆ From: deer.math.nctu.edu.tw