I'm tyring to run a simple script to test if the expect module works, here
is the script:
#!/import/local/bin/perl
use Expect;
$c = Expect->spawn("/bin/telnet host");
The error I'm getting when running the script is:
Can't locate loadable object for module IO::Tty in @INC (@INC contains:
/usr/loc
al/freeware/perl/perl5.005_03/lib/perl5/5.00503/sun4-solaris
/usr/local/freeware
/perl/perl5.005_03/lib/perl5/5.00503
=/usr/local/freeware/perl/perl5.005_03/lib/
perl5/site_perl/5.00503/sun4-solaris
/usr/local/freeware/perl/perl5.005_03/lib/p
erl5/site_perl/5.00503 .) at
/usr/local/freeware/perl/perl5.005_03/lib/perl5/sit
e_perl/5.00503/IO/Tty.pm line 26
BEGIN failed--compilation aborted at
/usr/local/freeware/perl/perl5.005_03/lib/p
erl5/site_perl/5.00503/IO/Pty.pm line 7.
BEGIN failed--compilation aborted at
/usr/local/freeware/perl/perl5.005_03/lib/p
erl5/site_perl/5.00503/Expect.pm line 19.
BEGIN failed--compilation aborted at ./frontend_for_input_file line 2.
I'm using Perl v5.005_03 under Solaris 7, not sure on the Expect module
version.
Any ideas?
Thanks in advance
Greg
|