[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: .fvwm2rc question



> On Mon, 6 Oct 1997, G. Kapetanios wrote:
> 
> >         Exec    "Stop It"       exec kill -9 $(ps aux | grep xlock | grep
> > -v grep | awk '{print $2}')
> > 
> > This works in the shell but not from the menu. Any ideas why ?
> 
> Because fvwm2 doesn't start a shell .... the command you give above uses
> the shell characters ( | $ etc., but there's no shell to interpret them.  

If that is true (and I don't know, really), then the answer
would be:

 Exec    "Stop It"       exec \
  sh -c "kill -9 $(ps aux | grep xlock | grep -v grep | awk '{print $2}')"

-- 
joost witteveen, joostje@debian.org
#!/usr/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
#what's this? see http://www.dcs.ex.ac.uk/~aba/rsa/


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: