GUI and command line  
Author Message
Marcelo





PostPosted: 2005-9-16 20:40:00 Top

java-programmer, GUI and command line Hello,

I need to connect my GUI program with a terminal in Linux (command
line). The task is to input inside a textField the command to exectue as
for exemple: "ls -al" or "gcc whatever.c -o whatever" but everything
must be done by a GUI program.

How can I call the terminal or execute these commands?

thanks,

Marcelo
 
Oliver Wong





PostPosted: 2005-9-16 23:03:00 Top

java-programmer >> GUI and command line
"Marcelo" <email***@***.com> wrote in message
news:432abd20$email***@***.com...
> Hello,
>
> I need to connect my GUI program with a terminal in Linux (command line).
> The task is to input inside a textField the command to exectue as for
> exemple: "ls -al" or "gcc whatever.c -o whatever" but everything must be
> done by a GUI program.
>
> How can I call the terminal or execute these commands?

Read the javadocs for java.lang.Process

- Oliver


 
Roedy Green





PostPosted: 2005-9-17 3:09:00 Top

java-programmer >> GUI and command line On Fri, 16 Sep 2005 14:40:00 +0200, Marcelo <email***@***.com> wrote
or quoted :

>How can I call the terminal or execute these commands?
see http://mindprod.com/jgloss/exec.html
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.