Koozali.org: home of the SME Server

howto disable cron reports to my email.

Offline spyrule

  • ***
  • 50
  • +0/-0
    • http://n/a
howto disable cron reports to my email.
« on: November 15, 2004, 05:20:33 AM »
Hello,

 I have 4 scripts that run ever 1 and 5 minutes, all they do is check for modified files, and then move them to specific directories.

The problem I'm having is that my admin email account
fills up with 5760 messages everyday, that are just those same for sh scripts executing, and reporting their output back to my email.  I do not want/need this.

I want to know if their is a way to disable sh script output from being sent to any email, but more spcificly, to NOT turn off my 1 x daily reports (for example :  cron.daily / clamAV report / change of server status reports).

Does anyone know how to do this?

Oh!, btw I'm executing these 4 scripts using
Crontab Manager, with the following :
sh /directorytothescript/runIPupdate.sh start
sh /directorytothescript/testtheme.sh
etc,etc.

Thanks in advance,

   Spy.

Offline Curly

  • ****
  • 114
  • +0/-0
howto disable cron reports to my email.
« Reply #1 on: November 15, 2004, 08:08:23 PM »
It's easy: redirect your output to somewhere, so change the way you invoke the script  

/mydirectory/myscript > /mydirectory/myscript.log 2>&1

or to nowhere:

/mydirectory/myscript > /dev/null 2>&1

You should watch the logfile-size, it will grow fast, but when errors occur you will have something to look at.
.......................................