Re: FVWM: detect running modules

From: Florian Diesch <diesch_at_spamfence.net>
Date: Tue, 27 Jul 2004 16:34:37 +0200

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

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:57 BST