Hi,

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();
System.out.println(line);

It simple returns null. But I can see that the application has executed. Could some one please help me to read this output.

Thanks,
Koustubh