hello,

On Wed, Jun 29, 2005 at 03:42:08PM +0200, Holly Bostick wrote:
> Hey, list,
 
> Alternatively, since the output cron jobs are being mailed via a mail -s
> command in the scripts themselves, can I/should I just put a dummy user
> in cron's 'normal' mailto slot, so that the "other" mail essentially
> goes to /dev/null?
> 
> It's not a big problem now, but I can see how, as I learn more about
> cron and add more jobs for the daemon to run, it could get to be.
> 
> What I'd *really* like is the output from the jobs that I've set to mail
> me output, and a summary of names of any other jobs that ran
> successfully, just so I know that they ran successfully. But I don't
> think cron does that... does it?
>
the only thing i know is to put all the output of the cronjob you won't
have an email to /dev/null
for example:
3 4 * * *       /usr/bin/ls /tmp > /dev/null

because auf cron only send's emails when it gets output you will never
get an email anymore.

But as you ask for an notification i don't know just one way.
do the task in an extra script an filter there the output, so that the
cron daemon only gets the output u wan't to have emailed.
that's why programs often have the -q --quiet option which only prints
errors.


> Thanks for any help,
hope i could help a little bit

> Holly

cya

alex

> -- 
> [email protected] mailing list
-- 
[email protected] mailing list

Reply via email to