I wrote a method to wrap calling Runtime.exec on UNIX. I'm trying to use it to run some monitoring type commands so it's ok they are OS specific.
When I call iostat, it works as expected and I see the first four lines. (I'm running it through bash so the pipe works.) However when I run top, I get nothing back. Not an exception - just a blank. The top command with head does work as expected when I run it directly at the command line.
Steve Luke wrote: and second 'cause it might tell you something useful.
:eek: That it did.
"TERM environment variable not set." - I still have to figure out what to do but now it's a UNIX thing and not a Runtime.exec. I imagine it's as simple as seeing what the value of that variable is when I log in at the command line.