Real Software Forums
http://forums.realsoftware.com/

Send info to Command Prompt / Terminal via Button Click?
http://forums.realsoftware.com/viewtopic.php?f=9&t=47665
Page 1 of 1

Author:  timehacker11 [ Sun Apr 21, 2013 6:36 pm ]
Post subject:  Send info to Command Prompt / Terminal via Button Click?

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.

Author:  timhare [ Sun Apr 21, 2013 6:53 pm ]
Post subject:  Re: Send info to Command Prompt / Terminal via Button Click?

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.

Author:  timehacker11 [ Sun Apr 21, 2013 7:08 pm ]
Post subject:  Re: Send info to Command Prompt / Terminal via Button Click?

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.

Author:  timhare [ Sun Apr 21, 2013 9:23 pm ]
Post subject:  Re: Send info to Command Prompt / Terminal via Button Click?

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.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/