From: Roland G. <RGi...@cp...> - 2003-08-01 06:45:34
|
> 1) "Cannot open a pty". > This comes from a failure of the pty_allocate > function, in the "new" subroutine of Pty.pm. My Pty.pm > is version 1.02. I cannot find the "pty_allocate" > subroutine in any .pm or .pl file on my system, so I > don't know why it is failing sometimes. Looks like you ran out of ptys on your system. This can happen if you have a lot of simultanious connections to spawned commands (or a lot of windows open). You didn't say what OS you are running on, you may want to look into /dev to see how pty* there are. Or into /dev/ptmx/. Go ask a local guru. BTW, the pty_allocate() is written in C and in an .XS module... > 2) "Error: could not connect pty as controlling > terminal!" This may be related to 1) and also is very system-dependent. Maybe an OS-upgrade is in order? Oh, and I think somebody already pointed out the SSH module? Be sure to read the entry in the Expect FAQ about automating ssh. You should NOT be using Expect purely to enter passwords for login, there are better mechanisms for that... Hope this helps, Roland -- RGi...@cp... |