From: Adams, J. W <JA1...@ex...> - 2000-08-28 00:10:52
|
I'm having some problems getting Expect.pm installed and running--I suspect my problem is in IO::Pty, but I don't know for sure. When I try this: #!/usr/bin/perl use Expect; $c = Expect->spawn("/usr/bin/telnet host"); I'm getting this: Expect: Could not assign a pty at /usr/local/bin/perl5/site_perl/5.005/Expect.pm line 60. I tried this also: #!/usr/bin/perl use IO::Pty; $pty = new IO::Pty; $slave = $pty->slave; I get this: Cannot open as :No such file or directory at ./exp2.pl line 6 (Line 6 is $slave = $pty->slave;). I think my problem is not with Expect.pm proper but with IO::Pty--still, I have a hunch someone else might have had similar problems. |