Re: [Ssh-sftp-perl-users] Error message when running perl scripts as root...
Brought to you by:
dbrobins
From: Robert L. <rla...@ao...> - 2005-01-06 22:05:37
|
On Thu, Jan 06, 2005 at 11:28:37AM -0800, CG wrote: > Running a script as root fails, wheile running a script as a "normal" user > succeeds: > > Can't locate object method "_session_channel" via package > "Net::SSH::Perl::SSH1" at /usr/lib/perl5/site_perl/5.8.2/Net/SFTP.pm line 52. > Might want to check to see what version of perl you're using with each user. I know I ran into a similar problem where root worked and user didn't because root was using a newer perl than the user. If that fails, you might try dumping %INC to see which versions of modules you're using... perl -MData::Dumper -MNet::SFTP -e 'print Dumper \%INC' And maybe it could be a simple problem with @INC. perl -MData::Dumper -MNet::SFTP -e 'print Dumper \@INC'; Good luck, Rob -- Robert Landrum Systems Programmer |