Re: [JSch-users] problems with jsch Exec.java demo

2012-03-21 Thread Bill Ross
Looks like none of my posts have gotten through, so I'm guessing there's a big backlog of posts waiting to be reviewed, for an unmaintained project. Nonetheless, here is my latest problem: Exec is giving me read access, but not write access. I can 'pwd' and 'ls' all I want, and even pipe ls i

Re: [JSch-users] problems with jsch Exec.java demo

2012-03-15 Thread Bill Ross
Maybe my earlier 2 posts have been waiting for moderation? Anyway, I thought I'd throw a solution along too, in case this ever gets out J InputStream in=channel.getInputStream(); BufferedReader fromServer = new BufferedReader(new InputStreamReader(in)); channel.connect(); System.out.println

Re: [JSch-users] problems with jsch Exec.java demo

2012-03-15 Thread Bill Ross
I'm sending this again since I sent it right after joining and didn't receive a copy, so not sure if it went out. Has anyone gotten output from jsch-0.1.46/examples/Exec.java? It seems like there might also be a bug with java since the main() never completes. Bill From: Bill Ross

[JSch-users] problems with jsch Exec.java demo

2012-03-14 Thread Bill Ross
The Jsch 1.46 Exec demo isn't working for me, in that output of the remote-execd-cmd (pwd) is getting lost. I can see it if I print the raw buffers, but my InputStream has gotten the output only once out of 30 tries. Also the program exits after the exec is done and before the rest of the demo pro