|
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
|