[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 23:51:31 +0200 |
User-agent: |
Mutt/1.4.2.1i |
On Wed, Sep 28, 2005 at 11:26:33PM +0200, Gerhard Siegesmund wrote:
> Mhm. There is not much to check. The script basically looks like this:
>
> ------------------------------------------------------------------------
> #!/bin/sh
>
> while true; do
> call_command_to_get something (e.g. fetchmail -c)
> echo something
> sleep some time
> done
It should work if you use just echo, as this is a shell builtin.
If that 'echo something' is an external command or a pipe you have
to use 'echo something || exit 1'.
How exactly does the script look like?
Cheers,
Michael.
--
Michael Schroeder address@hidden
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
- Re: [monitoring-like] would like to be warned when I have mail (fetchmail -c), (continued)
- 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/28
- Re: [monitoring-like] would like to be warned when I have mail (fetchmail -c), Will Maier, 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),
Michael Schroeder <=
- 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