satnet-project / server

Repository with the source code for the server of the SATNet network.
Apache License 2.0
2 stars 1 forks source link

Redirect crontab tasks output to /dev/null #20

Closed rtubio closed 8 years ago

rtubio commented 9 years ago

In order to avoid an excessive number of report mails generated by crontab, the output of the tasks should be redirected to /dev/null, by using the following crontab line:

*/30 * * * * command  > /dev/null

Errors will be reported anyway. In order to suppress them, the line to be used should be the following:

*/30 * * * * command  > /dev/null 2>&1
rtubio commented 8 years ago

crontab tasks have been re-directed to its own logging files within the server's configuration directory.

rtubio commented 8 years ago

Rather than to /dev/null, the output of the programmed crontab tasks has been redirected to a "crontab.log" within the logs directory of the server application.