Re: bandsicherung mit tar
Kim Neunert <k9ert@onlinehome.de> schrieb:
> On Samstag, 2. August 2003 17:08, Jonas Meurer wrote:
>> * Kim Neunert <k9ert@onlinehome.de> [ 03/08/02]:
>> > Die Ausgabe von Skripten, die per cron ausgeführt werden, wird IMHO Root
>> > per Mail geschickt.
>>
>> nur stderr ausgaben kommen per mail an root. normale logs werden mit
>> syslog nach /var/log/syslog geschrieben.
>> so ist die default configuration.
>
> Wo steht das, bzw. wo läßt sich das konfigurieren? Gerade ausprobiert. Ich
> bekomme nicht nur stderr.
Es steht in man cron(8) (und crontab(5)), aber andersherum:
cron:
,----
| When executing commands, any output is mailed to the owner of the
| crontab (or to the user named in the MAILTO environment variable in
| the crontab, if such exists).
`----
crontab(5)
,----
| 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.
`----
Das heisst, wenn man keine Mail will, setzt man MAILTO="". Wenn man den
output im syslog will, muss man das im Kommando erledigen, etwa indem
man an logger pipet. Sinnvollerweise stderr verdoppeln: einmal mit
stdout an logger, einmal als stdout an cron. Das geht mit redirections,
aber ich kriege es gerade auf die Schnelle nicht hin.
Gruß, Frank
--
Frank Küster, Biozentrum der Univ. Basel
Abt. Biophysikalische Chemie
Reply to: