Comment executer une tâche CRON de facon silencieuse et sans envoyer de courriel.

Problème:
Chaque fois qu'une tâche CRON est executée, un courriel est envoyé.  Ces courriels ne sont pas toujours desirable.

Solution:
Il suffit d'ajouter ceci a la fin de la commande:
 > /dev/null 2>&1

i.e.
/usr/local/sbin/mycommand.sh > /dev/null 2>&1


N'hésitez pas à ouvrir un ticket si vous aimeriez que nous le fassions pour vous.
  • 1 Utilisateurs l'ont trouvée utile
Cette réponse était-elle pertinente ?

Articles connexes

What are .htaccess files and how to create and edit them

.htaccess files are used to configure and provide the server with instuctions regarding the...

[EA3] New Relic APM on cPanel & CloudLinux CageFS

Many System Administrators tried to get PHP apps hosted on a cPanel server with CloudLinux and...

Freeing Space

Problem: Is there a way to tell the kernel to give back the free disk space now? Like a write to...

Recommended firewall

What firewall do you recommend to secure my Linux server? MACI recommends the CSF (ConfigServer...

Test CRON

You may want to test if the CRON is running on your server.  There is few ways in order to test...