View Single Post
  #1 (permalink)  
Old 06-11-2007, 12:33 PM
gary gary is offline
Member
 
Join Date: Jun 2007
Posts: 8
gary is on a distinguished road
get the output from whoami
Hello, this is my first post so please be patient with me.

I am quite new to java and I am trying to get the output of a whoami
command into a String variable.
normally I use
Process p = Runtime.getRuntime().exec("whoami");

but with the whoami command all I get is

java.lang.UNIXProcess@79bbdc
Reply With Quote
Sponsored Links