We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Cron email
-
- Posts: 25
- Joined: Mon Sep 30, 2013 8:42 am
Cron email
Hello,
I have setup some crons, but how can I disable the email for it?
Getting spammed because the crons.
I have setup some crons, but how can I disable the email for it?
Getting spammed because the crons.
Re: Cron email
If command return output you will get it on email. Check out if it support quite mode. If it is not, you can always suppress output by adding "> /dev/null 2>&1" to the end of command line
Code: Select all
some_commad - a arg1 -b arg2 > /dev/null 2>&1
-
- Posts: 25
- Joined: Mon Sep 30, 2013 8:42 am
Re: Cron email
Thank you I will try it out.skid wrote:If command return output you will get it on email. Check out if it support quite mode. If it is not, you can always suppress output by adding "> /dev/null 2>&1" to the end of command line
Code: Select all
some_commad - a arg1 -b arg2 > /dev/null 2>&1
-
- Posts: 31
- Joined: Wed Oct 18, 2017 6:34 am
Re: Cron email
Hello
I came here, as I had the same problem.
I tried /dev/null 2>&1 before I started to google solution. At other servers it works, at VestaCP Centos I had problem with - it did not.
I checked user crontab using shell and I found and commented this:
#MAILTO=[email protected]
#CONTENT_TYPE="text/plain; charset=utf-8"
Now, there are no user cron emails anymore.
ANyway, if somebody knows why regular /dev/null 2>&1 does not work, please share the knowledge, as I do not like 'solutions' mentioned above.
I came here, as I had the same problem.
I tried /dev/null 2>&1 before I started to google solution. At other servers it works, at VestaCP Centos I had problem with - it did not.
I checked user crontab using shell and I found and commented this:
#MAILTO=[email protected]
#CONTENT_TYPE="text/plain; charset=utf-8"
Now, there are no user cron emails anymore.
ANyway, if somebody knows why regular /dev/null 2>&1 does not work, please share the knowledge, as I do not like 'solutions' mentioned above.
Re: Cron email
you forgot > it should bewebsystems wrote: ↑Thu Jun 14, 2018 9:08 pmHello
I came here, as I had the same problem.
I tried /dev/null 2>&1 before I started to google solution. At other servers it works, at VestaCP Centos I had problem with - it did not.
I checked user crontab using shell and I found and commented this:
#MAILTO=[email protected]
#CONTENT_TYPE="text/plain; charset=utf-8"
Now, there are no user cron emails anymore.
ANyway, if somebody knows why regular /dev/null 2>&1 does not work, please share the knowledge, as I do not like 'solutions' mentioned above.
Code: Select all
> /dev/null 2>&1
-
- Posts: 31
- Joined: Wed Oct 18, 2017 6:34 am
Re: Cron email
joem wrote: ↑Thu Jun 14, 2018 11:34 pmyou forgot > it should bewebsystems wrote: ↑Thu Jun 14, 2018 9:08 pmHello
I came here, as I had the same problem.
I tried /dev/null 2>&1 before I started to google solution. At other servers it works, at VestaCP Centos I had problem with - it did not.
I checked user crontab using shell and I found and commented this:
#MAILTO=[email protected]
#CONTENT_TYPE="text/plain; charset=utf-8"
Now, there are no user cron emails anymore.
ANyway, if somebody knows why regular /dev/null 2>&1 does not work, please share the knowledge, as I do not like 'solutions' mentioned above.Code: Select all
> /dev/null 2>&1
No, I did not. I just forgot it in this post. The cron entry looks like:
wget https://www.myrealdomain.com/wp-cron.ph ... processing > /dev/null 2>&1