From: Roland G. <RGi...@cp...> - 2003-09-16 22:22:11
|
Rogaski, Mark, ALABS wrote: > Would this work? > > $exp->spawn("/usr/local/bin/ssh -tt $host"); No, the -t option forces tty-allocation at the remote (sshd server) side, we are talking about the client side here... Basically Expect would have to mimick what login or sshd is doing when allocating a pty. And it somewhat does (I got the pty allocation code partially from sshd). Hmm... there was some call that is only available to the superuser, maybe that's the missing one to correctly allocate the controlling tty... I left it out because it would only work for root, but maybe... I'll look into the issue when I have some spare time next week... Roland |