curl-users
Re: Getting an Email
Date: Tue, 23 Dec 2008 15:28:51 -0500
2008/12/23 Miriam Natanzon <miriam_at_mail.snunit.k12.il>:
> Hello all!
>
> I'm new to curl. I used it to run a cron job from my crontab with the
> following line :
>
> 45 * * * * curl --silent --compressed http://example.com/cron.php
>
> I saw that the cron job run' and I think' it run without any bugs,
>
> But-
>
> The "root user" in my system got an email with each running of that job,
> with the subject containing the above line.
>
> Do you think this email means there is a bug?
>
> How can I get rid of those insufferable massages???
Add a MAILTO=user_at_domain.com at the beginning of the crontab file to
make it go somewhere specific, or MAILTO="" to disable email for all
jobs, or redirect stdout _and_ stderr to /dev/null for individual
jobs. For other options regarding cron/crontab, Google is an excellent
resource. :)
Lars Nilsson
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2008-12-23