Re: Launching a cli server as background process in OSX

2019-08-01 Thread Dr. Hawkins via use-livecode
On Jul 31, 2019, at 3:56 PM, David Bovill via use-livecode wrote: > > The issue is that as the shell command runs until you forcibly exit (somecommand & | sleep 1) will launch somecommand as a background process and then sleeps 1 second before returning. somecommand could be a simple

Re: Launching a cli server as background process in OSX

2019-08-01 Thread David Bovill via use-livecode
Thanks everyone - Mark - it's not an issue with accessing hugo from shell - get shell ("hugo server") works fine - it just blocks as the server process keeps running as it should do - so I want to background it. Richard - yes I've tried that. In fact I tried all these different techniques to the

Re: Launching a cli server as background process in OSX

2019-07-31 Thread Mark Wieder via use-livecode
On 7/31/19 6:04 PM, Richard Gaskin via use-livecode wrote: What works in Terminal generally works in LC's shell function. But not always. It's not a login shell, so the environment variables may well be different. David - did you brew-install hugo? If so then my guess is that you need to

Re: Launching a cli server as background process in OSX

2019-07-31 Thread Richard Gaskin via use-livecode
What works in Terminal generally works in LC's shell function. Does this work as expected in Terminal but not in LC's shell?: hugo server & Maybe a bug report for that. Does this work?: open process "hugo server" for neither -- Richard Gaskin Fourth World Systems Software Design

Re: Launching a cli server as background process in OSX

2019-07-31 Thread Dar Scott Consulting via use-livecode
Random thoughts, all untested, most goofy, some incoherent: telnet or ssh shell() open a customized terminal app window group that has a script do as applescript enhance/repair open process launch service at startup, but tweak parameters elsehow Use a tool to turn a shell script into an app

Re: Launching a cli server as background process in OSX

2019-07-31 Thread David Bovill via use-livecode
Thanks Francois - but this is not the issue as the shell function works in that the server is launched via: *put shell ("hugo server")* The issue is that as the shell command runs until you forcibly exit - the Livecode handler freezes and no other scripts or user actions can run - so I want to

Re: Launching a cli server as background process in OSX

2019-07-31 Thread David Bovill via use-livecode
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

Re: Launching a cli server as background process in OSX

2019-07-31 Thread mines-imap via use-livecode
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 > a écrit : > > I have a

Re: Launching a cli server as background process in OSX

2019-07-31 Thread Matthias Rebbe via use-livecode
Hi, what about using "open process" instead of using shell()? Does that work? Regards, Matthiass Matthias Rebbe free tools for Livecoders: InstaMaker WinSignMaker Mac > Am 31.07.2019 um 17:24 schrieb David Bovill via

Launching a cli server as background process in OSX

2019-07-31 Thread David Bovill via use-livecode
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