Launching a cli server as background process in OSX

David Bovill david.bovill at gmail.com
Wed Jul 31 18:49:20 EDT 2019


Hi Matthias - no open process does not work for OSX unix processes:

*Note:* On OS X systems, you can use the open process command to start up
an application, but not a Unix process. To work with a Unix process, use
the shell func instead.


These are all the things I've tried:


   - *put shell ("hugo server")*
   - *get shell ("nohup hugo server >&/dev/null")*
   - *get shell ("screen hugo server")*

*I've tried various combinations of this in a bash script:*

#!/bin/bash
> hugo server
> wait
> echo "All processes done!"



   - *get shell ("bash bg_hugo_server.sh")*
   - *open* process "bash bg_hugo_server.sh"
   - *launch "bg_hugo_server.sh"*

I can't get any of them to work. I tried them with versions that use
Livecodes send in time - but still no joy. Pretty sure some combination of
bash and Livecode should work - but it's not easy - any ideas?



On Wed, 31 Jul 2019 at 21:16, mines-imap via use-livecode <
use-livecode at lists.runrev.com> wrote:

> If i remember correctly, shell() launches a new shell environment. It is
> possible that your executable is not in the current PATH. I have had this
> problem to execute pdftex from livecode.
> Best regards
> François
>
> > Le 31 juil. 2019 à 17:24, David Bovill via use-livecode <
> use-livecode at lists.runrev.com> a écrit :
> >
> > I have a server that I would like launch from Livecode. I've tried
> shell(),
> > launch, open process, and then creatign bash scripts ending with "&" or
> > using screen... no joy so far...
> >
> > In the terminal I run:
> >
> > hugo server
> >
> > and a little go server runs and does it's magic. But try as I can
> nothing I
> > do let's me launch the server from Livecode - without the script waiting
> > for the never ending process to end and interface freezing.
> >
> > Was about to launch into the world of tmux, or trying Applescript :( Any
> > ideas?
> > _______________________________________________
> > 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