Re: bbsnapshot idea for some intrepid programmer

2002-02-24 Thread Bradley T Hughes
On Friday 22 February 2002 20:57, Jeremy C. Reed wrote: > On Fri, 22 Feb 2002, Sean 'Shaleh' Perry wrote: > > bbsnapshot has a loop kind of like this: > > ... > > > on exit the program should write out the list as well. > > Or maybe a simple shell tool using xlsclients and xprop could do > this? (

Re: bbsnapshot idea for some intrepid programmer

2002-02-23 Thread Jim Knoble
Circa 2002-Feb-24 00:51:21 -0500 dixit Kyle Donaldson: : On Sat, 23 Feb 2002, Jan Schaumann wrote: : > I'm no sh-wiz, but wouldn't : > : > WINDOW_IDS=`xlsclients -l | grep Window | sed s/"Window "// | sed s/://` : > : > work in /bin/sh work? : : It should, but I would place it inside double-q

Re: bbsnapshot idea for some intrepid programmer

2002-02-23 Thread Sean 'Shaleh' Perry
> > Somehow, I'm not surprised. I've not been impressed with bash. It's > ironic that they claim to aspire to ieee 1003.2 compliance, and claim that > most posix scripts should run in bash without modification. I rarely have > got bourne shell scripts to run correctly in bash without significa

Re: bbsnapshot idea for some intrepid programmer

2002-02-23 Thread David Egan Evans
On Sat, 23 Feb 2002, Sean 'Shaleh' Perry wrote: > Date: Sat, 23 Feb 2002 21:47:26 -0800 (PST) > From: Sean 'Shaleh' Perry <[EMAIL PROTECTED]> > To: David Egan Evans <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > Subject: Re: bbsnapshot idea for some

Re: bbsnapshot idea for some intrepid programmer

2002-02-23 Thread Kyle Donaldson
On Sat, 23 Feb 2002, Jan Schaumann wrote: > cthulhain <[EMAIL PROTECTED]> wrote: > > please change #!/bin/sh at the top of your script to #!/bin/bash > because > > of the following: > > > > WINDOW_IDS=(`xlsclients -l | grep Window | sed s/"Window "// | sed > s/://`) > > I'd rather see it adjuste

Re: bbsnapshot idea for some intrepid programmer

2002-02-23 Thread Sean 'Shaleh' Perry
On 24-Feb-2002 David Egan Evans wrote: > On Sat, 23 Feb 2002, Ben Neuman wrote: > >> (snip) >> bashism! bashism bad! bashisms make me very cranky. bashisms make me install >> bash. bash makes me unhappy. >> > > Gotta say it: I feel the same way. I'm a true kornshell lover (ksh93!), > and gotta

Re: bbsnapshot idea for some intrepid programmer

2002-02-23 Thread David Egan Evans
On Sat, 23 Feb 2002, Ben Neuman wrote: > (snip) > bashism! bashism bad! bashisms make me very cranky. bashisms make me install bash. >bash makes me unhappy. > Gotta say it: I feel the same way. I'm a true kornshell lover (ksh93!), and gotta make it a flame war :-). Bash does have the posix th

Re: bbsnapshot idea for some intrepid programmer

2002-02-23 Thread Ben Neuman
On Sat, 23 Feb 2002 21:27:48 -0600 Jamin W.Collins <[EMAIL PROTECTED]> wrote: > On Sat, 23 Feb 2002 21:49:45 -0500 > "cthulhain" <[EMAIL PROTECTED]> wrote: > > > please change #!/bin/sh at the top of your script to #!/bin/bash because > > of the following: > (snip) > > another thing is that you

Re: bbsnapshot idea for some intrepid programmer

2002-02-23 Thread Jan Schaumann
cthulhain <[EMAIL PROTECTED]> wrote: > please change #!/bin/sh at the top of your script to #!/bin/bash because > of the following: > > WINDOW_IDS=(`xlsclients -l | grep Window | sed s/"Window "// | sed s/://`) I'd rather see it adjusted to work with "/bin/sh" than having it require bash. Some

Re: bbsnapshot idea for some intrepid programmer

2002-02-23 Thread Jamin W . Collins
On Sat, 23 Feb 2002 21:49:45 -0500 "cthulhain" <[EMAIL PROTECTED]> wrote: > please change #!/bin/sh at the top of your script to #!/bin/bash because > of the following: (snip) > another thing is that you do not need to have the line "#!/bin/sh" at > the top of the ~/.bbsession file. this file sho

Re: bbsnapshot idea for some intrepid programmer

2002-02-23 Thread John Kennison
On Sat, 23 Feb 2002 20:09:20 -0600 "Jamin W. Collins" <[EMAIL PROTECTED]> wrote: > The script as posted should echo information it gathers about the > running applications. If there is no information on the "Blackbox > Attributes" line, there will be no entry made in the "~/.bbsession" > file.

Re: bbsnapshot idea for some intrepid programmer

2002-02-23 Thread cthulhain
please change #!/bin/sh at the top of your script to #!/bin/bash because of the following: WINDOW_IDS=(`xlsclients -l | grep Window | sed s/"Window "// | sed s/://`) another thing is that you do not need to have the line "#!/bin/sh" at the top of the ~/.bbsession file. this file should be source

Re: bbsnapshot idea for some intrepid programmer

2002-02-23 Thread Russ Burdick
On Sat, Feb 23, 2002 at 08:09:20PM -0600, Jamin W. Collins wrote: > > Apps I've found exhibiting this problem: > can add mozilla-0.9.8 to the list. simple enough to add that into .bbsession after capturing the info on all the other apps though. Russ -- ===

Re: bbsnapshot idea for some intrepid programmer

2002-02-23 Thread Jamin W . Collins
On Sat, 23 Feb 2002 19:33:57 -0600 "Jamin W. Collins" <[EMAIL PROTECTED]> wrote: > Well, here's a quick stab, for those of you interested. > > It locates all windows (at least those reported by xlsclients) and > starts gathering information about them. Then stores this information > in"~/.bbses

Re: bbsnapshot idea for some intrepid programmer

2002-02-23 Thread Russ Burdick
On Sat, Feb 23, 2002 at 07:33:57PM -0600, Jamin W. Collins wrote: > > Well, here's a quick stab, for those of you interested. > fine work. worked great here after one small change. figured there may be other folks who dont have 'tempfile' (this redhat7.2 box has 'mktemp'). to make it work here

Re: bbsnapshot idea for some intrepid programmer

2002-02-23 Thread Jamin W . Collins
On Fri, 22 Feb 2002 12:27:05 -0800 (PST) "Sean 'Shaleh' Perry" <[EMAIL PROTECTED]> wrote: > On 22-Feb-2002 Jeremy C. Reed wrote: > > Or maybe a simple shell tool using xlsclients and xprop could do > > this? (But not runing all the time.) > > this could work too. > > > But I am not sure if xpro

Re: bbsnapshot idea for some intrepid programmer

2002-02-22 Thread Jeremy C. Reed
On 23 Feb 2002, Luke Freeman wrote: > Well I have Redhat 7.1 installed and i have a ~/.xinitrc file which is > executable and has the following contents: > > #!/bin/sh > exec xterm > > and sure enough .. nothing. I log in using gdm. I could add stuff to That is normal. xdm (or gdm) use .

Re: bbsnapshot idea for some intrepid programmer

2002-02-22 Thread Jim Knoble
Circa 2002-Feb-23 16:20:13 +1100 dixit Luke Freeman: : Well I have Redhat 7.1 installed and i have a ~/.xinitrc file which is : executable and has the following contents: : : #!/bin/sh : exec xterm : : and sure enough .. nothing. I log in using gdm. I could add stuff to : the gdm Session f

Re: bbsnapshot idea for some intrepid programmer

2002-02-22 Thread Luke Freeman
Well I have Redhat 7.1 installed and i have a ~/.xinitrc file which is executable and has the following contents: #!/bin/sh exec xterm and sure enough .. nothing. I log in using gdm. I could add stuff to the gdm Session file but I would like to retain the 'startup' settings for more than on

Re: bbsnapshot idea for some intrepid programmer

2002-02-22 Thread Sean 'Shaleh' Perry
On 22-Feb-2002 Luke Freeman wrote: > whilst we are on this track .. > > it would be handy to have a windowsish 'startup' feature, a global > rootCommand if you will. I know about .xinitrc and all that but that > still is not blackbox specific .. (plus .xinitrc doesnt fire for me -- > redhat 7.1 :

Re: bbsnapshot idea for some intrepid programmer

2002-02-22 Thread Jan Schaumann
Luke Freeman <[EMAIL PROTECTED]> wrote: > it would be handy to have a windowsish 'startup' feature, a global > rootCommand if you will. I know about .xinitrc and all that but that > still is not blackbox specific .. (plus .xinitrc doesnt fire for me -- > redhat 7.1 :) Why would startup-commands

Re: bbsnapshot idea for some intrepid programmer

2002-02-22 Thread Luke Freeman
whilst we are on this track .. it would be handy to have a windowsish 'startup' feature, a global rootCommand if you will. I know about .xinitrc and all that but that still is not blackbox specific .. (plus .xinitrc doesnt fire for me -- redhat 7.1 :) -luke

Re: bbsnapshot idea for some intrepid programmer

2002-02-22 Thread Sean 'Shaleh' Perry
On 22-Feb-2002 Jeremy C. Reed wrote: > On Fri, 22 Feb 2002, Sean 'Shaleh' Perry wrote: > >> bbsnapshot has a loop kind of like this: > ... >> on exit the program should write out the list as well. > > Or maybe a simple shell tool using xlsclients and xprop could do > this? (But not runing all th

Re: bbsnapshot idea for some intrepid programmer

2002-02-22 Thread Jeremy C. Reed
On Fri, 22 Feb 2002, Sean 'Shaleh' Perry wrote: > bbsnapshot has a loop kind of like this: ... > on exit the program should write out the list as well. Or maybe a simple shell tool using xlsclients and xprop could do this? (But not runing all the time.) > the file could be in most any format it

Re: bbsnapshot idea for some intrepid programmer

2002-02-22 Thread Sean 'Shaleh' Perry
On 22-Feb-2002 Andy Kopciuch wrote: >> >> Someone with experience with the bbtools code should be able to write this >> in 2 or 3 days. A newbie to the code but not to coding should be able to >> knock it out in a week or so. >> >> Either bbpager or bbkeys has most of this written, so you could a

Re: bbsnapshot idea for some intrepid programmer

2002-02-22 Thread Andy Kopciuch
On Friday 22 February 2002 12:45, Andy Kopciuch wrote: > > Someone with experience with the bbtools code should be able to write > > this in 2 or 3 days. A newbie to the code but not to coding should be > > able to knock it out in a week or so. > > > > Either bbpager or bbkeys has most of this wr

Re: bbsnapshot idea for some intrepid programmer

2002-02-22 Thread Andy Kopciuch
> > Someone with experience with the bbtools code should be able to write this > in 2 or 3 days. A newbie to the code but not to coding should be able to > knock it out in a week or so. > > Either bbpager or bbkeys has most of this written, so you could also start > by field stripping one of thes

bbsnapshot idea for some intrepid programmer

2002-02-22 Thread Sean 'Shaleh' Perry
So, people keep asking for session management. I think I see a way to give them what they want yet keep blackbox simple. Implement a Slit app which would act kind of like bbpager or bbkeys. It just sits there listening for 'new window', 'dead window', etc. It should be a simple square with may