in message <[EMAIL PROTECTED]>, 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/

_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to