Maintaining a single shell() instance across multiple calls?

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

Post Reply
EssoAir
Posts: 52
Joined: Thu Feb 20, 2014 7:53 pm

Maintaining a single shell() instance across multiple calls?

Post by EssoAir » Wed Nov 12, 2014 12:23 pm

Hey guys!

So I'm working on a project right now. Part of it requires that I make an install wizard for the Dlang compiler called DMD. I was really just hoping to use LiveCode's shell() command to script the install process without the user seeing any command windows open or anything. The problem is, when I enter one command, it runs, gets the return value, and then closes the instance. How can I retain that instance so that when I run another shell() command (for feeding the installer with config options) it is just send to the installer and doesnt create a whole new process.

I've seen a couple posts about this, so I know I'm not the first to ask. But I'm wondering if anything has changed. I can't just concatenate the commands since installation is an asynchronous process and I must wait for the callback before I can continue with the next command.

Thanks in advance!

EssoAir

Post Reply

Return to “Talking LiveCode”