Re: Passive Shell Commands

2013-10-10 Thread Dr. Hawkins
On Thu, Oct 10, 2013 at 5:10 PM, Dr. Hawkins wrote: > I'll play some more tonight; they still don't seem to be talking . . . > They're launching and compiling, but not talking. I have a field in master with on closeField write the text of me to process slave end closeField and the main s

Re: Passive Shell Commands

2013-10-10 Thread Dr. Hawkins
On Thu, Oct 10, 2013 at 11:10 AM, Andrew Kluthe wrote: > I don't think this works with just a stackfile but a standalone. > To be clear, I'm doing this with the standalones. I've also tried master within the IDE and slave as a standalone with the same results, -- Dr. Richard E. Hawkins, Esq.

Re: Passive Shell Commands

2013-10-10 Thread Dr. Hawkins
On Thu, Oct 10, 2013 at 12:38 PM, Monte Goulding < mo...@sweattechnologies.com> wrote: > So slApp isn't among the lines of the openProcesses? It should be. > Hmm, now it is; just checked. And I found it once last night in the force quit dialog, but assumed that I had started it myself. I'll pla

Re: Passive Shell Commands

2013-10-10 Thread Monte Goulding
On 11/10/2013, at 2:08 AM, "Dr. Hawkins" wrote: > I'm trying to launch a second livecode stack, but it isn't working. > > I created master.livecode and slave.livecod on the desktop. > > I give master a script of > > on openstack > global slApp > > put "/Users/hawk/Desktop/slave/MacOSX/sl

Re: Passive Shell Commands

2013-10-10 Thread Phil Davis
If you want to launch the second stack in a separate process (with its own LC session), it will have to be made into a standalone app. You can only "launch" an app, which a stackfile is not. If you just want to open the stack in your current LC session, you can just open it, or go to it, or to

Re: Passive Shell Commands

2013-10-10 Thread Klaus major-k
Am 10.10.2013 um 17:08 schrieb Dr. Hawkins : > I'm trying to launch a second livecode stack, but it isn't working. > > I created master.livecode and slave.livecod on the desktop. > > I give master a script of > > on openstack > global slApp > > put "/Users/hawk/Desktop/slave/MacOSX/slave.

Re: Passive Shell Commands

2013-10-10 Thread Andrew Kluthe
I don't think this works with just a stackfile but a standalone. On Thu, Oct 10, 2013 at 10:08 AM, Dr. Hawkins wrote: > I'm trying to launch a second livecode stack, but it isn't working. > > I created master.livecode and slave.livecod on the desktop. > > I give master a script of > > on openst

Re: Passive Shell Commands

2013-10-10 Thread Dr. Hawkins
I'm trying to launch a second livecode stack, but it isn't working. I created master.livecode and slave.livecod on the desktop. I give master a script of on openstack global slApp put "/Users/hawk/Desktop/slave/MacOSX/slave.app/Contents/MacOS/slave" into slApp answer "starting" brea

Re: Passive Shell Commands

2013-10-09 Thread Dr. Hawkins
On Wed, Oct 9, 2013 at 1:51 PM, Monte Goulding wrote: > Yes it can... read from STDIO... write to STDOUT > > Or just parse the command line args... $1... $n where n is $# > Thanks; I need to play with this. Command line arguments won't work; this would be passing SQL commands & results back and

Re: Passive Shell Commands

2013-10-09 Thread Monte Goulding
> Can a livecode standalone be the slave process? Could it around to > periodically check for stdin and answer to stdout? > > This could be perfect for handling my lag issues . . . Yes it can... read from STDIO... write to STDOUT Or just parse the command line args... $1... $n where n is $#

Re: Passive Shell Commands

2013-10-09 Thread Ray Horsley
This has really worked out well for me. Thanks again Monte! Dr. Hawkins, I don't think there's any way to address a Livecode standalone with a command line prompt if that's what you were asking but I hope you find an answer to the lag issue you have. Cheers, Ray On 10/8/2013 6:00 PM, Monte

Re: Passive Shell Commands

2013-10-09 Thread Dr. Hawkins
On Tue, Oct 8, 2013 at 7:57 PM, Monte Goulding wrote: > Ah, I assumed you didn't need to read from the process. If you don't need > to read or know when it's done then: > open process appPath&" "&srcPath&" "&trgPath for neither > Can a livecode standalone be the slave process? Could it around t

Re: Passive Shell Commands

2013-10-08 Thread Ray Horsley
Ahh! Now it's really working well. Monte, thanks. Very helpful. Ray On 10/8/2013 10:57 PM, Monte Goulding wrote: On 09/10/2013, at 1:45 PM, Ray Horsley wrote: First time using open process for me. Fascinating! Thanks Monte. Not quite sure on the write and read syntax. My original shell

Re: Passive Shell Commands

2013-10-08 Thread Monte Goulding
On 09/10/2013, at 1:45 PM, Ray Horsley wrote: > First time using open process for me. Fascinating! Thanks Monte. Not quite > sure on the write and read syntax. > > My original shell command which works fine is: > get shell(""&appPath&" "&srcPath&" "&trgPath&"") > where the app is a command

Re: Passive Shell Commands

2013-10-08 Thread Ray Horsley
First time using open process for me. Fascinating! Thanks Monte. Not quite sure on the write and read syntax. My original shell command which works fine is: get shell(""&appPath&" "&srcPath&" "&trgPath&"") where the app is a command line utility which converts a PDF file to multiple JPEG's

Re: Passive Shell Commands

2013-10-08 Thread Monte Goulding
Use open process for neither Cheers Monte On 09/10/2013, at 8:19 AM, Ray Horsley wrote: > I'm sending a shell command which is taking a long time. I'd like to send it > in a way so scripts continue to run while the shell command runs in the > background. I believe this is called 'passive mo

Passive Shell Commands

2013-10-08 Thread Ray Horsley
I'm sending a shell command which is taking a long time. I'd like to send it in a way so scripts continue to run while the shell command runs in the background. I believe this is called 'passive mode', not sure. Anyway, any ideas? ___ use-livecode