Challenge: who can background this shell command?
dsc at swcp.com
dsc at swcp.com
Thu Aug 1 12:15:08 EDT 2019
I feel foolish. From the dictionary:
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.
When I saw this in the Dictionary, I thought, "Oh, when did this break?"
I should have thought, "Oh, yeah?"
> On Aug 1, 2019, at 10:03 AM, Dar Scott Consulting via use-livecode <use-livecode at lists.runrev.com> wrote:
> So, this is a documentation problem?
>> On Aug 1, 2019, at 9:27 AM, Mark Waddingham via use-livecode <use-livecode at lists.runrev.com> wrote:
>> On 2019-08-01 17:12, David Bovill via use-livecode wrote:
>>> OK - so I have it working by writing to a temporary file.
>>> Trying to redirect the output to stdout - so that shell() return the
>>> information of the background process - but this freezes:
>> Okay so given you want to read/write to the process you launched it seems...
>> What's wrong with open process? The *only* difference between open process
>> on macOS compared to Linux (and Windows) is that if you try and open process
>> an app-bundle (i.e. something ending with '.app') it will do the same as
>> launch (as .app bundles aren't executables).
>> The installer uses open (elevated) process to communicate with an instance
>> of itself with elevated permissions. You can see the code for that here:
>> The key routines are installerRun and installerMonitor (the latter is used
>> to poll every 20 milliseconds to check if the child process has anything to
>> Warmest Regards,
>> Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/
>> LiveCode: Everyone can create apps
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode