Results 1 to 1 of 1
Thread: GanyMed SSH2
- 09-30-2013, 08:50 PM #1Member
- Join Date
- Sep 2013
- Rep Power
I am trying to run an application on my linux server and I would want to read the output from the application which is displayed on the console but I am not being able to retreive the output in my Java program. I am able to read the output from normal linux commands like "ls" or "cat temp", but when I try to execute my application it simple returns Null.
I am using sess.execCommand("ffmpeg -i someFile");
and I cannot rad the output using
InputStream stdout = new StreamGobbler(sess.getStdout());
BufferedReader br = new BufferedReader(new InputStreamReader(stdout));
line = br.readLine();
It simple returns null. But I can see that the application has executed. Could some one please help me to read this output.