Cron job without emailing errors to root?

Khairil Yusof kaeru at pd.jaring.my
Wed Mar 10 00:22:46 PST 2004


On Tue, 2004-03-09 at 21:25 -0600, phoetoid at pyrospheric.net wrote:

> What I am wondering is, is if there is a way to still have the entries in
> me /etc/crontab to run MRTG at 5 minute intervals without having any
> output emailed out. can i make it come out to concole instead? anything to
> get it from emailing would be great as I am seeing ~2000 messages a day :/

By default output is emailed, else it is piped to wherever you want it
to go.

Pipe it to /dev/null

eg.

@hourly /bin/dontcare.sh > /dev/null
@hourly /bin/arrgh.sh  | mail -subject "Server is down" user1
@hourly /bin/msg.sh | sendsms -phone 016 333 3333

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040310/4092f30f/attachment.bin


More information about the freebsd-questions mailing list