Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 167
  • Last Modified:

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)
0
happyloman
Asked:
happyloman
1 Solution
 
cheekycjCommented:
Duplicate Question Experts please post comments here:
http://www.experts-exchange.com/java/Q_20315518.html

Happyloman: Please delete this question.

Thanx,
CJ
0
 
MoondancerCommented:
Hi, happyloman .... you can avoid duplicate and multiple entries, which cost you extra points, by using our "reload" button rather than your Browser controls such as F5/Refresh, CTRL+F5 Server Refresh or the back button.

Also, the experts here were trying to help you in terms of letting you know you have multiples of the same question.  I will refund this one to you and changes this grade to an A.  I see you already received help from Ovi in the other question and awarded it.

If you need more such help, comment and I'll return when I can.  Or post a zero pont question in Community Support.

Thanks, CJ, for letting me know.

Moondancer  -  EE Moderator
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now