Results 1 to 1 of 1
Thread: GanyMed SSH2
- 09-30-2013, 08:50 PM #1
Member
- Join Date
- Sep 2013
- Posts
- 1
- Rep Power
- 0
GanyMed SSH2
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
Similar Threads
-
GanyMed-SSH2 & Script SFTP
By badeddin in forum NetworkingReplies: 0Last Post: 03-16-2012, 04:53 PM -
SSH Connection with host linux "ganymed"
By guybrush_84 in forum Advanced JavaReplies: 0Last Post: 08-03-2011, 12:51 PM
Bookmarks