Solved

displaying UNIX stdout in JAVA GUI

Posted on 2002-06-24
3
158 Views
Last Modified: 2010-03-31
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
Comment
Question by:happyloman
3 Comments
 
LVL 9

Accepted Solution

by:
Ovi earned 0 total points
ID: 7106671
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 7107694
Duplicate Question Experts please post comments here:
http://www.experts-exchange.com/java/Q_20315518.html

Happyloman: Please delete this question.

Thanx,
CJ
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7109268
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Free Alternative to JIRA 4 91
Unexpected HttpURLConnection connection behavior 2 84
Problem to start Neon 20 85
Java DateChooser? 3 29
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now