Re: How To Terminate sh cmd from apps in menu.xml?
Dana Jansens <[email protected]>
| Newsgroups | gmane.comp.window-managers.openbox |
|---|---|
| Message-ID | <CAP1a_afROzFJzmgYRkvj8y5ahY1y32K+KUjcXQsog0JDv5rDfg@mail.gmail.com> |
exec makes the shell replace its own process with the command instead of running a sub-process, so ya what Mikael said. On Fri, Oct 31, 2014 at 3:15 AM, E R <[email protected]> wrote: > Actually my bad, this does appear to work; > > <command>sh -c "icecat > /dev/null 2>&1 &"</command> > > So you're saying I should change it to this instead? > > > <command>sh -c "exec icecat > /dev/null 2>&1 &"</command> > > I've never known to put exec in a openbox menu.xml <command> before, hmm > > > On Thu, Oct 30, 2014 at 9:06 PM, Mikael Magnusson <[email protected]> > wrote: > > On Fri, Oct 31, 2014 at 7:12 AM, E R <[email protected]> wrote: > >> Hi, > >> > >> I want to run some apps to /dev/null in menu.xml, so I have like this > >> example below; > >> > >> <command>sh -c "icecat > /dev/null 2>&1"</command> > >> > >> But if run the command like this I see in htop the application name > >> running and sh too. > >> > >> I forgot who it was just recently showed me how to stop sh from > >> running when using commands in the autostart.sh, but not sure how to > >> apply this to the menu.xml command. > >> > >> > >> All I understand is that I need an ampersand & on the end of the > >> command, something like this? > >> > >> <command>sh -c "icecat > /dev/null 2>&1 &"</command> > > > > use sh -c "exec icecat ... > > > > -- > > Mikael Magnusson > > _______________________________________________ > > openbox mailing list > > [email protected] > > http://icculus.org/mailman/listinfo/openbox > _______________________________________________ > openbox mailing list > [email protected] > http://icculus.org/mailman/listinfo/openbox > _______________________________________________ openbox mailing list [email protected] http://icculus.org/mailman/listinfo/openbox