How to stop some of the cron frequent jobs from sending e-mail and filling up Your inbox?

How to stop some of the cron frequent jobs from sending e-mail and filling up Your inbox?

/dev/null them.

How? Add this after the command:

>/dev/null 2>&1

so Your task looks lets say like this:

*/5 * * * * /path/to/executable >/dev/null 2>&1

This way the executable will be ran every 5 minutes but You won’t receive any emails about it.

Cheers.

Andrzej

AndrzejL

"Never meet Your heroes. Most of the time you'll only end up disappointed." White Polak Male Husband Employee Hetero Carnivorous Fugly Geek @$$hole with ADD Catholic “Some men just want to watch the world burn.”

Comments are closed.