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

2005-09-28 Thread Aaron Griffin
On 9/28/05, Gerhard Siegesmund <[EMAIL PROTECTED]> wrote: > So I have an endless loop which regulary gets the new status. In > screenrc I put the following line > > backtick 1 0 0 my_script.sh > > and put the backtick into the statusline. > > Now when I start screen my script is started. Everything

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

2005-09-28 Thread Michael Schroeder
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. fetchmai

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

2005-09-28 Thread Will Maier
On Wed, Sep 28, 2005 at 11:26:33PM +0200, Gerhard Siegesmund wrote: [...] > 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). -- [Will [EMAIL PROTECTED]/[EMA

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

2005-09-28 Thread Gerhard Siegesmund
Hello Michael > 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? Mhm. There is not much to check. The script basicall

Re: bind and paste buffer...

2005-09-28 Thread Aaron Griffin
On 9/27/05, Peder Stray <[EMAIL PROTECTED]> wrote: > > is it possible to bind somthing like > > 'screen url ""' > > to a key in screen? possibly with a combination of screen, stuff and paste > if thats necessary. Well, you can use writebuf/readbuf. In my screen setup, I bound C-b (b for b

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

2005-09-28 Thread Michael Schroeder
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

Re: backtick & hardstatus

2005-09-28 Thread Will Maier
On Wed, Sep 28, 2005 at 11:51:23AM +0200, Thomas Baruchel wrote: > I set backtick to 1 0 0 rathen than 1 60 1 as explained in another > Since I like rather the "message" format than the "lastline" (which makes > less place for applications). It works, but... I can't think of a screenish way to do

backtick & hardstatus

2005-09-28 Thread Thomas Baruchel
> $ cat ~/.screenrc > ... > backtick 1 60 1 /$HOME/bin/screen-checkmail > ... > hardstatus alwayslastline ...%1`... OK. I did it, I wrote a piece of C code sleeping 15 minutes, then launching "fetchmail -c" and parsing the output in order to have its own output (I mean my piece