I have a a simple GUI with
1. TEXT AREA
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)