#347 new
jshrek

How to stop receiving email everytime cron runs?

Reported by jshrek | December 4th, 2010 @ 02:18 PM

Hi

I setup a cron every 20 minutes to run wp-o-matic but it sends me an email everytime. Is there a way stop getting emails.

I initially had this:
/usr/bin/curl http://mydomain.com/wp-content/plugins/wp-o-matic/cron.php?code=123...

I then tried this:
/usr/bin/curl http://mydomain.com/wp-content/plugins/wp-o-matic/cron.php?code=123... > /dev/null This cut down on the size of the email but I was still receiving an email everytime.

I then tried addding the -q option but that did not make any difference:
/usr/bin/curl -q http://mydomain.com/wp-content/plugins/wp-o-matic/cron.php?code=123... > /dev/null

Thanks

Comments and changes to this ticket

  • jshrek

    jshrek December 4th, 2010 @ 06:44 PM

    Ok, so after some research this is what I figured out...

    All my cron jobs (except one) start with
    /usr/local/bin/php and will send me an email when they run. I can stop the email by inlcuding
    > /dev/null on the end of the cron command.

    This new cron job I have, starts with
    /usr/bin/curl and is an http request.
    I can reduce the size of the email by adding
    > /dev/null to the end, which I believe eliminates the response to the http, but does not eliminate the original CURL information.

    I have managed to eliminate this as well by also adding this to the end:
    2>&1

    So the end of the cron command looks like this:
    > /dev/null 2>&1

    Thanks

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

WP-o-Matic project.

People watching this ticket

Pages