On 10/20/09 17:55, Atsuhiko Yamanaka wrote:
> Hi,
> 
>    +-From: Ivan Soleimanipour <ivan.soleimanip...@sun.com> --
>    |_Date: Tue, 20 Oct 2009 13:53:25 -0700 __________________
>    |
>    |jsch can provide i/o access to remote processes via pty's.
>    |However, some applications require access to a pty w/o an associated 
> process.
>    ...
>    |I believe the base SSH protocol can provide this, but none of
>    |the Channel implementations as of jsch-0.1.42 seem to provide such
>    |a raw pty-only channel.
>    |Is it possible to commission such a feature in jsch?
> 
> How about using ChannelExec#setPty,
> 
>     Channel channel=session.openChannel("exec");
>     ... 
>     ((ChannelExec)channel).setPty(true);
>     channel.connect();
> 

Your example may work w/o requiring a setCommand() but the API
doesn't have a way of telling me what the slave pty path is.

Now that I look at RFC 4254 I only see "pty-req" and it
seems to not provide a slave pathname :-(


Thanks.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to