On Sat, Jul 17, 2004 at 07:50:01PM +1000, Scott Smedley wrote:
> 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
Use something like
grep [F]vwmProxy
to avoid grep matching itself
--
Schönen Tag noch
Florian # http://www.informatik.uni-freiburg.de/~diesch/
--------------------------------------------------------------------------
** Hi! I'm a signature virus! Copy me into your signature, please! **
--
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 Tue Jul 27 2004 - 09:53:25 BST