Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Mar 2004 16:22:30 +0800
From:      Khairil Yusof <kaeru@pd.jaring.my>
To:        phoetoid@pyrospheric.net
Cc:        questions@freebsd.org
Subject:   Re: Cron job without emailing errors to root?
Message-ID:  <1078906949.960.19.camel@wolverine.cerebro.net.my>
In-Reply-To: <1786.192.168.1.17.1078889122.squirrel@mail.pyrospheric.net>
References:  <1786.192.168.1.17.1078889122.squirrel@mail.pyrospheric.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-dPhx0fsS26K54spHl/Ug
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Tue, 2004-03-09 at 21:25 -0600, phoetoid@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 t=
o
> 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


--=-dPhx0fsS26K54spHl/Ug
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQBATtBFDAqnLW/+/X8RApS6AJwKTod1oKqRKFO3YOv5isQnQVpt0ACggtGC
kjtAkOvigrYb0zPdKEbB3GQ=
=xL4r
-----END PGP SIGNATURE-----

--=-dPhx0fsS26K54spHl/Ug--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1078906949.960.19.camel>