Something More Than Cron
shane at hathawaymix.org
Sat Feb 13 08:40:44 MST 2010
Eric Wald wrote:
> Could these two be added by a simple wrapper around your real cron job?
> It could start by adding a single line to a log file, then steal all of
> the input and pipe it into sendmail. Rough guideline:
> echo `date -u +"%s"` "$@" >> /var/log/jobsrun.log
> ( echo "From: $0 at localhost"; \
> echo "To: $USER at localhost";
> echo "Subject: Job transcript for $1";
> echo; \
> "$@" ) |& sendmail -i $USER at localhost
> Good luck.
Not a bad idea! Thanks.
More information about the PLUG