How to start an app by a terminal and to keep it running, when closing the terminal?
Chris Bannister
cbannister at slingshot.co.nz
Wed May 21 03:23:20 UTC 2014
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
More information about the D-community-offtopic
mailing list