Re: [JSch-users] Shell.java not working

2008-04-17 Thread campo
Thank you both for your help. The problem was with 'System.in' I am now able to log in and enter commands. I can use: *channel.setInputStream(System.in);* now as long as I use an input file, i.e.: java Shell < unix.script which is exactly what I need. On Thu, Apr 17, 2008 at 9:47 AM, Atsuhiko

Re: [JSch-users] Shell.java not working

2008-04-17 Thread Atsuhiko Yamanaka
Hi, +-From: campo <[EMAIL PROTECTED]> --- |_Date: Wed, 16 Apr 2008 21:50:32 +0100 __ | |Question: Does anyone know what might be wrong or is there any way of |altering Exec.java to execute numerous commands in the same session? Any |help appreciated. It is a known problem.

[JSch-users] Shell.java not working

2008-04-16 Thread campo
Apologies if this has been posted before but I cant find the answer. I'm connecting from Windows OS using the Shell.java example. I can connect with no problems but when I try to type, nothing happens. I find this very strange because Exec.java works fine and prints out the results of a command.