Link to home
Start Free TrialLog in
Avatar of happyloman
happyloman

asked on

displaying UNIX stdout in JAVA GUI

I have a a simple GUI with
1. TEXT AREA
2. BUTTON

when I push the button, the program runs a simple UNIX command (for example, "who" or "ls")
I need to echo the results of that command to the text area.

I don't want to do this by redirection to a file ("ls > outputfile") and then opening the file for the textarea.

I want to do this in real time, if possible (For example, if the unix command is a long "grep", then the results would scroll on the text area.

is this possible to do???

By the way, I am using JAVA NATIVE to run the unix commands ('C' system call)
Avatar of cheekycj
cheekycj
Flag of United States of America image

Duplicate Question Experts please post comments here:
https://www.experts-exchange.com/questions/20315518/displaying-UNIX-stdout-in-JAVA-GUI.html

Happyloman: Please delete this question.

Thanx,
CJ
ASKER CERTIFIED SOLUTION
Avatar of Ovi
Ovi

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Moondancer
Moondancer

You posted this same question 11 times, and all have been closed.  Those which contained help to you we can leave, but others which were experts trying to alert you of the multiple entries, I'll refund for you.  Please use the "reload" button versus your Browser control buttons, and also don't hit submit more than once when creating a question.  

If you need help, any time, post a zero point question here:
https://www.experts-exchange.com/commspt/
Include the question link (URL)

Thank you,
Moondancer - EE Moderator
Grade changed to A and points refunded.