Siteworx : Cron's email

Hello,

I’ve done some tests with the cron jobs in siteworx.

The problem is that even if I do not enter an email in the email fields, an email is sent every time the cron job is run.

If I enter nothing (what I did) it sents an email
If I enter ‘’ same

so, How to disable, in siteworx, the sending of an email for the cron status ?

Thanks

Pascal

Pascal,

At the end of your cron job line, if you put:

>/dev/null 2>&1

there will be no output from the cron job and it won’t email anything.

Nice catch Pascal. This is a bug, and we’ll have it fixed in the next release. For now, the way to do it is to edit the crontab from the command line.

Log in to your server, su to root, and run the following command:

crontab -u <user> -e

Where is the user of the crontab file you want to edit. In there, add this line near the top:

MAILTO=""

Note however, that until this bug is fixed, if you edit your crontab via Node/SiteWorx again, it will overwrite this change and you’ll have to fix it from the command line again.