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

2005-09-29 Thread Gerhard Siegesmund
Hello Michael 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? Here is the script:

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

2005-09-29 Thread Gerhard Siegesmund
Hello Will backtick 1 0 0 my_script.sh Why not get rid of the loop in your script and make screen run it every X seconds? That will solve your problem (although it doesn't really suggest the cause). I had that before. Problem is, that the call to the imap-server often takes several seconds.