[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [monitoring-like] would like to be warned when I have mail (fetchmai

From: Michael Schroeder
Subject: Re: [monitoring-like] would like to be warned when I have mail (fetchmail -c)
Date: Wed, 28 Sep 2005 16:15:03 +0200
User-agent: Mutt/

On Wed, Sep 28, 2005 at 12:10:56AM +0200, Gerhard Siegesmund wrote:
> I did something similar, but asking an imap-Server for the number of
> mails with fetchmail -c. Problem was: The query took several seconds to
> succeed, in which time my screen freezed as the hardstatusline was
> waiting for the info.
> I read the manpage and found "backtick 1 0 0 script" which is supposed
> to start the script and just wait for new messages to stdout to output
> them on the hardstatusline. Works great! Except for one thing: The
> script doesn't get killed, if the screen is ended. This means I have to
> stop the mailcheck-scripts which are created from screen by hand.

Hmm, the process that writes to screen should terminate with an error
if screen is no longer running. It's basically the same as if you
run "script | less" and quit the pager.
Du you check the exit status of your commands?


Michael Schroeder           address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]