nntp2http.com
Posting
Suche
Optionen
Hilfe & Kontakt

Re: Debian-cron und Minus in der crontab

Von: Christian Winter (thepoet_nospam@arcor.de) [Profil]
Datum: 03.03.2008 12:11
Message-ID: <47cbdce7$0$21935$9b4e6d93@newsspool2.arcor-online.net>
Newsgroup: de.comp.os.unix.linux.misc
vinicius94932@lycos.de schrieb:
> Bei Suse kann man mit einem Minus in der crontab bekanntlich cron
> abgewoehnen staendig Mails zu verschicken, wenn er einen Job erledigt
> hat.
> like this
>
> -* * * * * echo "weiss der Fuchs"

Meine crontab-Manpage auf der SuSE sagt etwas anderes dazu:

If the uid of the owner is 0 (root), he can put a "-" as first  charac-
ter  of  a  crontab entry. This will prevent cron from writing a syslog
message about this command getting executed.

Das ist zwar ein SuSE-Patch, allerdings hat der nichts mit Mail zu tun.
Der unterdrückt nur die Syslog-Einträge der Form
Mar  3 09:15:36 hostname /usr/sbin/cron[$PID]: ($USER) CMD ($COMMAND)

> Soweit ich jetzt rausgefunden hab patcht Suse den cron, um dieses
> Feature zu erhalten.
>
> Ich haette gern dieses Feature auf meinem Debian, weill ich es
> eigentlich ganz praktisch finde.

"man 5 crontab" (Vixie-Cron, egal welche Distri):
If MAILTO is defined but empty  (MAILTO=""),  no mail will be sent.
Otherwise mail is sent to the owner of the crontab.

HTH
-Christian

[ Auf dieses Posting antworten ]

Antworten