[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gambas-user
Subject:    Re: [Gambas-user] Gambas and ssh
From:       Rob <sourceforge-raindog2 () kudla ! org>
Date:       2010-06-23 17:53:07
Message-ID: 201006231353.08038.sourceforge-raindog2 () kudla ! org
[Download RAW message or body]

On Wednesday 23 June 2010 11:38 am, Pablo Ontivero wrote:
> Hi, i'm trying to make a app for connect to a pc with ssh, i can connect
> [...]
> entablish and after press the button3 the connection close. I'm not sure
> if when i press the button2 i send the command, but i don't know how to
> see this. Please, anyone can help me? Thanks.

I don't know if it's still the case, but ssh used to require a TTY and 
Gambas' SHELL command used to not provide one.  I ended up writing a perl 
wrapper using a TTY simulator module that spawned ssh on a TTY, passing the 
command line arguments as well as handling bidirectional I/O between the 
two processes.  I might have used the Expect module, not sure (it was for a 
client and I don't think I have the code anymore.)

Rob

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic