[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/1.4.2.1i |
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?
Cheers,
Michael.
--
Michael Schroeder address@hidden
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
- [monitoring-like] would like to be warned when I have mail (fetchmail -c), Thomas Baruchel, 2005/09/27
- Re: [monitoring-like] would like to be warned when I have mail (fetchmail -c), Michael Schroeder, 2005/09/28
- Re: [monitoring-like] would like to be warned when I have mail (fetchmail -c), Gerhard Siegesmund, 2005/09/29
- Re: [monitoring-like] would like to be warned when I have mail (fetchmail -c), Gerhard Siegesmund, 2005/09/29
- Re: [monitoring-like] would like to be warned when I have mail (fetchmail -c), Aaron Griffin, 2005/09/28
- Re: [monitoring-like] would like to be warned when I have mail (fetchmail -c), Gerhard Siegesmund, 2005/09/29