DelphiFAQ Home Search:
General :: Linux :: shell
Linux shell programming/ scripting, shortcuts and general know-how.

Articles:

This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.

Featured Article

How to disable notification emails of cron jobs

Question:

I have a couple of jobs scheduled using cron. Some run every hour and I am tired of seeing the same notification emails every hour. How can I disable that?

Answer:

Indeed by default cron jobs sends a email to the user account executing the cronjob. If you don't like that simply redirect your job's stdout and stderr to null
You can do that by appending the following to your command:

>/dev/null 2>&1


Generated 8:01:01 on Aug 19, 2017