[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[debian-users:54194] Re: cron error  	(grandchild #xxxxx failed with exit status 1)
>        1 There was no mail awaiting retrieval.  (There may
>          have been old mail still on the server but not
>          selected for retrieval.) If you do not want "no
>          mail" to be an error condition (for instance, for
>          cron jobs), use a POSIX-com‐pliant shell and add
> 
>         || [ $? -eq 1 ]
> 
>         to the end of the fetchmail command line, note that
>         this leaves 0 untouched, maps 1 to 0, and maps all
>         other codes to 1. See also item #C8 in the FAQ.
アドバイスいただいたように、|| [ $? -eq 1 ]を付ける事で希望の挙動になっ
てくれました。
ご指摘のように、これを付けなくてもアップデート前はエラーメールは来なかっ
た理由はまだ解りません。cronやfetchmailの設定ファイルを再度見直して見た
いと思います。
「解決」とさせて頂きます。
皆様どうもありがとうございました。
Morimoto