|
From: Olivier C. <oli...@fr...> - 2001-02-25 21:55:36
|
Andre Goeree wrote:
>
> On Fri, Feb 23, 2001 at 09:46:49PM +0100, Olivier Chapuis wrote:
> > Andre Goeree wrote:
> > >
> > > On Fri, Feb 23, 2001 at 10:23:12AM +0100, Olivier Chapuis wrote:
> > > > Andre Goeree wrote:
> > > >
> > > > Yes
> > > Good! :-)
> > > >
> > > > > ago@mandark$ ls -a ~/.fvwm/.tmp-com-*
> > > > > .tmp-com-lock-script-16049
> > > > >
> > > > > And "ps" gives:
> > > > > 16047 /home/ago/sys/fvwm/libexec/fvwm/2.3.29/FvwmScript ...
> > > > >
> > > >
> > > > The commands use by the FvwmScript scripts to found the pid
> > > > is:
> > > >
> > > > Set $cmd = {perl -e '$t=getppid; print $t . "\n"'}
> > > > Set $pid = (GetOutput $cmd 1 -1)
> > > >
> > > > FvwmScript use popen (and fread) to get the output.
> > > > It seems that on Andre machine the following happen:
> > > >
> > > > FvwmScript -> a shell run by popen -> perl cmd
> > > >
> > >
> > > Yes, this appears to be the case, from the popen(3) man page:
> > > DESCRIPTION
> > [snip]
> > >
> > > There you have it :-)
> > >
> >
> > Yes, but the description of popen of my glibc is almost the same
> > and the result is different ...
>
> Hmm, i've been busy setting up a Linux box (Mandrake 6.1) so
> that i will have reference, it has been a long time ago that
> i've seen a penguin :-) This way it will be easier for me/us
> to point out the differences.
> Now that i studied the Linux popen(3) man page, there's indeed
> (almost) no difference between the two pages...
> I will study/compare some more of the related man pages to
> see if i can find what where looking for.
>
> > Any way if you want to use the Themes Center ...etc. you
> > can use the "Second Experience".
>
> I modified the scripts as you asked and re-installed the
> stuff. The output of the Test script:
> 11197
> 11196
> 1
> Not set
> Not set
> Not set
>
> There's always a difference of 1 between the two pids.
>
Interseting, is the second pid is the pid of the Test
FvwmScript?
> I can run both Themes and Config Center. The Menu Editor
> also works. What stays is the difference between the pid
> and the .tmp-com* files... There was no need to kill the
> scripts by hand.
>
Yes, if you use the quit button of the GUI. But if you kill the
GUI with an other procedure (say, kill -9 pid_of_the_FvwmScript),
then you need to kill the perl script by hand.
Regards, Olivier
> Hope this helps you a little further.
>
> Andre.
>
> --
> FVWM-Themes-devel mailing list, fvw...@li...
> http://lists.sourceforge.net/lists/listinfo/fvwm-themes-devel
|