Date: Tue, 8 Jul 2003 15:01:20 -0400 From: parv <parv_fm@emailgroups.net> To: Elliot Finley <efinleywork@efinley.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: No output from periodic Message-ID: <20030708190120.GA55547@moo.holy.cow> In-Reply-To: <09f301c3456b$4d029d20$b4be0ed0@elliotdevelop> References: <087c01c34560$7ed08e80$b4be0ed0@elliotdevelop> <20030708153145.GL87950@dan.emsphone.com> <5.2.0.9.2.20030708105106.01789890@mail.servplex.com> <09f301c3456b$4d029d20$b4be0ed0@elliotdevelop>
next in thread | previous in thread | raw e-mail | index | archive | help
in message <09f301c3456b$4d029d20$b4be0ed0@elliotdevelop>, wrote Elliot Finley thusly... > > I _want_ cron to email me when there _is_ output. But I _don't > want_ an email when there _isn't_ output. > > Anyone know how to accomplish this? In three (easy) steps... - Create a wrapper to be invoked by cron - In wrapper... - Execute the real command & save the output in a temporary file - Send e-mail only if file size is zero - Parv -- A programmer, budding Unix system administrator, and amateur photographer ISO employment... http://www103.pair.com/parv/work/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030708190120.GA55547>