Re: [Ssh-sftp-perl-users] input must be 8 bytes long at Crypt/DES.pmline 57
Brought to you by:
dbrobins
From: Heinrich, M. <Mat...@sa...> - 2006-12-27 23:24:25
|
Wow... It looks like either the XML::Smart or Object::MultiType (required by the XML::Smart module) has stepped on Math:BigInt (don't ask me how...) =20 I ran into the same problem when I installed the XML module. My SSH script, which has always worked, stopped working, and looped an error message complaining of an uninitialized variable being used, which may be similar to what you were experiencing. I tried removing and reinstalling a couple of modules (Crypt::DH, Math::BigInt::GMP, and some more) , but nothing got it to work until I removed Math::BigInt! I got a list of modules to remove: $ make uninstall unlink /usr/lib/perl5/5.8.0/Math/BigFloat.pm unlink /usr/lib/perl5/5.8.0/Math/BigInt.pm unlink /usr/lib/perl5/5.8.0/Math/BigInt/Calc.pm unlink /usr/lib/perl5/5.8.0/Math/BigInt/CalcEmu.pm unlink /usr/share/man/man3/Math::BigFloat.3pm unlink /usr/share/man/man3/Math::BigInt.3pm unlink /usr/share/man/man3/Math::BigInt::Calc.3pm unlink /usr/share/man/man3/Math::BigInt::CalcEmu.3pm unlink /usr/lib/perl5/5.8.0/i386-linux-thread-multi/auto/Math-BigInt/.packlist Uninstall is deprecated. Please check the packlist above carefully. There may be errors. Remove the appropriate files manually. Sorry for the inconveniences. Then just copied all the unlink commands and pasted to the bash shell. Then I just did another "perl Makefil.PL", "make", then "make install" and now it seems to work! -----Original Message----- From: ssh...@li... [mailto:ssh...@li...] On Behalf Of Glen Farmer Sent: Wednesday, December 27, 2006 10:42 AM To: ssh...@li... Subject: [Ssh-sftp-perl-users] input must be 8 bytes long at Crypt/DES.pmline 57 Hi I'm a newbie to perl and I was trying to write a script to read a xml with all the info for the connection and all the commands that need to run on the remote machine. I was using Net::SSH::Perl and it works if I don't get the variables from the xml, but if I read the xml using XML::Simple or XML:Smart it give the the following error: input must be 8 bytes long at /usr/lib/perl5/site_perl/5.8.8/i586-linux-thread-multi/Crypt/DES.pm line 57. If I put in the info to login to the ssh server hardcoded in the script it works but when ever I use the variables that were read by the XML modules it give me the error. If I hardcode the login info to the script and then try to use commands that were read from the xml script it give me the same error. Can someone help me please!!! Thanks in advance, Glen I'm running: opensuse 10.1. Net This is perl, v5.8.8 built for i586-linux-thread-multi Net-SSH-Perl-1.30 Crypt-DES-2.05 XML-Simple-2.16 XML-Smart-1.6.9 cpan script version 1.03 CPAN.pm version 1.7602 The script is: #!/usr/bin/perl -w use XML::Smart; use Net::SSH::Perl; my $XML =3D XML::Smart->new($ARGV[0]); my $host =3D $XML->{Server}->{ip}; my $user =3D $XML->{Server}->{user}; my $password =3D $XML->{Server}->{password}; my $ssh =3D Net::SSH::Perl->new ($host); $ssh->login($user, $password); print "Connected...\n"; The XML -------------------------------- <Server> <ip>10.10.10.10</ip> <user>userName</user> <password>password</password> <Commands> <Command>cd d:/</Command> </Commands> </Server> _________________________________________________________________ >From photos to predictions, The MSN Entertainment Guide to Golden=20 >Globes has it all. http://tv.msn.com/tv/globes2007/ ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDE V _______________________________________________ Ssh-sftp-perl-users mailing list Ssh...@li... https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users |