On Wed, May 21, 2014 at 02:49:31PM +1200, Richard Hector wrote:
> On 21/05/14 09:30, Ralf Mardorf wrote:
> > Why is evolution launched, while "evowrap --force-shutdown" and "evoterm 
> > --force-shutdown" are running?
> > 
> > case $1 in
> >   JWM) evoterm --force-shutdown
> >        while ps aux | grep "evowrap --force-shutdown" | grep -v grep ; do 
> > sleep 1 ; done
> >        while ps aux | grep "evoterm --force-shutdown" | grep -v grep ; do 
> > sleep 1 ; done
> >        evolution
> >        exit;;
> > esac
> 
> Have you confirmed that the grep is accurately finding the ps result?
> 
> Note you could be using:
> pgrep --full "evowrap --force-shutdown"
> or similar.
> 
> Also, rather than using "grep -v grep", you could use
> 
> grep "[e]voterm"
> 
> which will match "evoterm" but will never match itself.
>
> PS what makes this OT?

It isn't a strictly Debian problem, perhaps, is the reason?

-- 
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the 
oppressing." --- Malcolm X

_______________________________________________
D-community-offtopic mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/d-community-offtopic

Reply via email to