Hello,
i have a bash script in /etc/cron.daily/myscript
and receiving e-mails each time this script run:
Quote:
From: Anacron <root@myserver>
To: root@myserver
Content-Type: text/plain; charset="ANSI_X3.4-1968"
Subject: Anacron job 'cron.daily' on myserver
Status: R
|
I do not want to receive e-mails for this particular bash script.
I know i can edit bash script and output commands output STDERR/OUT to /dev/null but there is too many lines.
How can i
mute these e-mails for this particular bash script or mute that bash script STDOUT/ERR please ?
I know i can create new file in /etc/cron.d and inside it add something like:
15 0 * * * root /bin/sh /etc/cron.daily/myscript >/dev/null 2>&1
But i want the bash script to stay in cron.daily, any way to do so in a simple way?
crontabs-1.10-33