[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/

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?


Michael Schroeder           address@hidden

reply via email to

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