No output from periodic
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
- Send e-mail only if file size is zero
A programmer, budding Unix system administrator, and amateur photographer
More information about the freebsd-questions