system
October 6, 2009, 5:38pm
1
Every time my cron jobs run, I get a n email sent to me.
Where do I turn this off ?
I looked in :
WebMin->System->Scheduled Cron Jobs-> Edit Cron Job
but could not see anywhere to turn off the email.
Also I noticed that even though one of my cron jobs was inactive
(red cross) it still go run - is that a known bug ?
Thanks.
Eric
October 11, 2009, 4:02am
2
What cron job is emailing you, and what’s listed in the email you receive?
-Eric
ronald
October 18, 2009, 1:14am
3
at the end of the cmd of the cronjob you can add: >/dev/null 2>&1
a line would look like this: etc/webmin/virtual-server/collectinfo.pl >/dev/null 2>&1
system
October 24, 2009, 10:55am
4
The cron jobs that are mailing me are the ones that I set up
via the WebMin control panel.
The contents of the email is empty unless there is an error.
( the error goes in the contents )
The subject line shows which script is being run
eg
Cron focus7@heavyhoster php -q /home/focus7/public_html/auto_remind1.php
Cron focus7@heavyhoster php -q /home/focus7/public_html/auto_remind2.php
Cron focus7@heavyhoster php -q /home/focus7/public_html/auto_warn.php
Cron guru54gt5@heavyhoster php -q /home/guru54gt5/public_html/sys/auto.php #auto-responder
http://www.expert-world.com/website-traffic.html
I can not find any option to turn these email notices off.
I am getting several hundred jamming up my inbox most days.
system
October 24, 2009, 10:58am
5
Thanks for helping.
I added that code and I am now waiting until tomorrow to see if the
emails stop getting generated.
system
October 24, 2009, 11:03am
6
Hi,
This is a pretty SERIOUS PROBLEM
Would be great if someone could let me how to stop the thousandS of emails that are flooding my server when I let the cron jobs
Most of my cron jobs are using this website:
customer service software
and this one:
website traffic
So hopefully these sites will not be too affected by the increase load on the server.
thanks
My best regards,and thank´s 1milion times,becouse that eat the cpu resources of an 8gb ram in scond.
SWYD
March 7, 2016, 9:06pm
9
first of all, thank you for the answer, but did not work for me
/home/user/folder/script parameter >/dev/null 2>&1
Error: no output created
When i try to start it without >/dev/null 2>&1 it works
/home/user/folder/script parameter
eclipse
January 14, 2017, 5:48pm
10
Adding >/dev/null 2>&1 to the end of the CRON job works like a charm.