No output from periodic
parv
parv_fm at emailgroups.net
Tue Jul 8 11:58:24 PDT 2003
in message <09f301c3456b$4d029d20$b4be0ed0 at 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/
More information about the freebsd-questions
mailing list