Hi Rusty,
> How about using a nice piperead and some standard Posix programs?
>
> Here's an example of one such statement (i.e. just stick this in a
> piperead):
> ps -A | grep FvwmProxy >/dev/null && echo "ModuleSynchronous FvwmProxy \
> || echo "Nop"
A good idea.
However, I'd also like to know if a named instance of a module is
running.
ie. I start multiple instances of the FvwmButtons module.
eg. Module FvwmButtons Buttonbar
So I'd need to use "ps -A -f", but then the grep would probably
match on itself so I should use the "pidof" program, but then I want
to make sure it's _my_ FvwmProxy running (not someone elses) so I
probably need to combine pidof with ps.
I don't think using pidof is portable though.
Hmmm, why do PipeRead's always get so complicated!? :)
SCoTT. :)
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Sat Jul 17 2004 - 04:57:22 BST