RE: FVWM: Starting an app when needed

From: Martin Bialasinski <martin_at_internet-treff.uni-koeln.de>
Date: Tue, 9 Dec 1997 04:32:35 +0100 (CET)

On Mon, 8 Dec 1997, Bob Woodside wrote:

> > AddToFunc "connect-xisp"
> > + "I" None ["X-ISP"] exec xisp
> > + "I" Exec kill -SIGUSR1 `cat /home/martinb/.xisppid`
> >
>
> + "I" Wait X-ISP
>
> before the line where you try to signal the process, and it should work
> as you want. (Note that the window name is not quoted - quirky, I know,
> but it doesn't work if you quote the name.) I just tried this on my
> system, and it works fine. Of course, I had to shake off my usual
> lethargy and upgrade to the latest version of X-ISP to try this - 2.2
> didn't have this feature. :-)
>
I don't have problems with the quotes. Works fine.

I tried "Wait". This doesn't do what I want. Imagine this case: I start
xisp through the menu, it dials in. I minimize the window. I disconnect
vie SIGUSR2. Now I want to cennect again via the menu. A "Wait" will wait
for the minimized (or even a new?) window to (re)appear, wouldn't it?

I use this function which works reasonable well:

DestroyFunc connect-xisp
AddToFunc connect-xisp
+ "I" None ["X-ISP"] exec xtoolwait -timeout 3 xisp\
                                 -bgcol '#0000b0'; kill -SIGUSR1\
                                   `cat /home/martinb/.xisppid`
+ "I" Exec kill -SIGUSR1 `cat /home/martinb/.xisppid`

Sometimes (after I restart fvwm, or if I invoke the function while I am
not at page 0,0) it will not work. Either xisp won't start altogether or
it won't dial in or it will start two times... "Interesting feature" as
the programmers say :-)

> By the way, if you have a working pidof command or the equivalent,
> that's probably more reliable than looking at ~/.xisppid. A crashed process
> could always leave a stale pid file lying around, and things like this also
> tend to be release dependent.
>
Where do I get such "pidof" utility from? I don't have one and it sounds
as is I really should have one :-)

Ciao,
        Martin

BTW: If you use debian linux, you can get the new xisp package from
ftp://134.95.210.54/pub


--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Tue Dec 09 1997 - 04:07:18 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:01 BST