Launching several applications via shell...

Glen Bojsza gbojsza at gmail.com
Wed Mar 28 12:17:29 EDT 2012


I found that this will work

get shell("trafficgen > /dev/null 2>&1 &")

According to Linux it places it as a background process.

thanks,

Glen

On Wed, Mar 28, 2012 at 10:04 AM, Mike Bonner <bonnmike at gmail.com> wrote:

> launch "path/to/app" should work right?
>
> or
>
> open process "path/to/app" for neither
>
> maybe?
>
> Or the other way as mentioned by theirry
>
> I think if you do it like so get shell("mycommand & ; disown")
> so that disown is on its own it might work. (with no arguments it acts on
> the current job which in this case is the one that has just been
> backgrounded)
>
> Not sure though that this will allow the shell itself to end which would be
> a cause of blocking. Think the first 2 options might be better choices for
> this.
>
> On Wed, Mar 28, 2012 at 9:21 AM, Thierry Douez <th.douez at gmail.com> wrote:
>
> > 2012/3/28 Glen Bojsza <gbojsza at gmail.com>
> >
> > I am trying to have a simple application launcher (on Linux) where the
> user
> > > can launch different applications but a clicking the associated button.
> > >
> > > The problem is that once the user has launched one application none of
> > the
> > > others will launch until they close the application they just opened.
> > >
> > > I would like to allow all applications to remain open even if the
> > Livecode
> > > application closes... is this possible.
> > >
> > > So far all I am using is the shell command in each button for an
> > individual
> > > application.
> > >
> > > thanks,
> > >
> > > Glen
> > >
> >
> >  Did you try this one:
> >
> >       get shell("trafficgen & disown ")
> >       ....
> >       get shell("editor & disown")
> >
> > HTH,
> >
> > Thierry
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list