Page 1 of 1

HOw to prevent emails from?

Posted: Fri Feb 14, 2014 10:33 am
by Qefx
As topic, how do I prevent messages from my cron job?

Thanks :)

Re: HOw to prevent emails from?

Posted: Fri Feb 14, 2014 10:57 am
by skid
You can null the output by adding ">/dev/null 2>&1" to the end of your command like

Code: Select all

echo "ok" >/dev/null 2>&1

Re: HOw to prevent emails from?

Posted: Fri Feb 14, 2014 10:58 am
by Qefx
skid wrote:You can null the output by adding ">/dev/null 2>&1" to the end of your command like

Code: Select all

echo "ok" >/dev/null 2>&1
I did that and got several files in my home folder (all empty)

Re: HOw to prevent emails from?

Posted: Fri Feb 14, 2014 11:12 am
by skid
It sounds like something wrong with the redirection. Can you show the full command you use?

Anyway you can completely disable cron reporting for the user account if you run following

Code: Select all

v-delete-cron-reports admin
where admin is you target user.

Re: HOw to prevent emails from?

Posted: Fri Feb 14, 2014 11:36 am
by Qefx
skid wrote:It sounds like something wrong with the redirection. Can you show the full command you use?

Anyway you can completely disable cron reporting for the user account if you run following

Code: Select all

v-delete-cron-reports admin
where admin is you target user.
Ah thanks nice :)

PS: Vesta is the best panel ever :) Keep up the good work! :D