Hallo!
Ich habe einen Cronjob angelegt, der alle 2 minuten ausgeführt wird, jetzt bekomme ich als root alle
2 minuten eine Email, wie kann ich das Abstellen, bzw mit einen anderen Cron Job oder so, das Root Postfach
jedenTag einmal löschen?
Mit freundlichem Gruß
Chrsitian
Cron & Mail
Re: Cron & Mail
Hi,
ueblicherweise unterdrueckt man die eMails, indem an jede Kommandozeile ein " 1>/dev/null 2>&1" angehaengt wird.
ratte
ueblicherweise unterdrueckt man die eMails, indem an jede Kommandozeile ein " 1>/dev/null 2>&1" angehaengt wird.
ratte
Re: Cron & Mail
gucke mal in /etc/crontab
man 5 crontab:
.
.
In addition to LOGNAME, HOME, and SHELL, cron(8) will look at MAILTO if it has any
reason to send mail as a result of running commands in ``this'' crontab. If MAILTO
is defined (and non-empty), mail is sent to the user so named. If MAILTO is
defined but empty (MAILTO=""), no mail will be sent. Otherwise mail is sent to the
owner of the crontab.
.
.
.
Gruss Max
man 5 crontab:
.
.
In addition to LOGNAME, HOME, and SHELL, cron(8) will look at MAILTO if it has any
reason to send mail as a result of running commands in ``this'' crontab. If MAILTO
is defined (and non-empty), mail is sent to the user so named. If MAILTO is
defined but empty (MAILTO=""), no mail will be sent. Otherwise mail is sent to the
owner of the crontab.
.
.
.
Gruss Max
Re: Cron & Mail
Okay, danke
weis ich auch endlich wofür der scheiss bei dem anderen cronjob dahinter steht
Gruß
Christian
weis ich auch endlich wofür der scheiss bei dem anderen cronjob dahinter steht
Gruß
Christian
Re: Cron & Mail
Und für den zweiten Tipp auch danke, werde ich mir gleich aufschreiben, damit ichs demnächst weiss, wenn ich es
all für alle mal abstellen will
Gruss Christian
all für alle mal abstellen will
Gruss Christian