New topic: Send info to Command Prompt / Terminal via Button Click?
<http://forums.realsoftware.com/viewtopic.php?t=47665> Page 1 of 1 [ 4 posts ] Previous topic | Next topic Author Message timehacker11 Post subject: Send info to Command Prompt / Terminal via Button Click?Posted: Sun Apr 21, 2013 6:36 pm Joined: Sat Apr 20, 2013 7:41 pm Posts: 11 I have searched for this but haven't found exactly what I'm trying to do. I want my app to send arguments to the Command Prompt (Windows) and to Terminal on Linux and OS X when the user clicks on a Button. How would I accomplish this? Thanks, timehacker11. Top timhare Post subject: Re: Send info to Command Prompt / Terminal via Button Click?Posted: Sun Apr 21, 2013 6:53 pm Joined: Fri Jan 06, 2006 3:21 pm Posts: 12262 Location: Portland, OR USA I believe that on Linux and OSX you can use system.debuglog. Windows, on the other hand, doesn't have the same concept of a single "command prompt" that you can access. cmd.exe is just another windows application. You can have several running at the same time. What are you trying to accomplish? That would help steer the responses you will get. Top timehacker11 Post subject: Re: Send info to Command Prompt / Terminal via Button Click?Posted: Sun Apr 21, 2013 7:08 pm Joined: Sat Apr 20, 2013 7:41 pm Posts: 11 timhare wrote:I believe that on Linux and OSX you can use system.debuglog. Windows, on the other hand, doesn't have the same concept of a single "command prompt" that you can access. cmd.exe is just another windows application. You can have several running at the same time. What are you trying to accomplish? That would help steer the responses you will get. Basically, once the user has entered data / modified values, I want the app to send those values to the Command Line and execute them.. This app is a GUI for a Command Line App, if that helps. Top timhare Post subject: Re: Send info to Command Prompt / Terminal via Button Click?Posted: Sun Apr 21, 2013 9:23 pm Joined: Fri Jan 06, 2006 3:21 pm Posts: 12262 Location: Portland, OR USA Then I think you want the Shell class. Make sure you set up the environment, if necessary. Shelled subprocesses do not run the user's login scripts that Command Prompt and Terminal do. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 4 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
