Re: [Ssh-sftp-perl-users] problems with net-ssh-perl ... pleasetake a look.
Brought to you by:
dbrobins
|
From: Kirkland, B. <Bru...@po...> - 2006-11-13 21:35:04
|
I just got your message today. I'm fairly new at this so I'm probably
not much help. I have been testing and found it to be very slow. The
only clues I have is to use something like the following to get a trace
similar to ssh -v=20
=20
#!/usr/local/bin/perl -w
# test the perl modules
use Net::SSH::Perl;
# login info
$user=3D"real user goes here";
$pass=3D"real pw goes here";
$host=3D"real serer goes here ";
# for debugging, this will give you something like ssh -v
my $ssh =3D Net::SSH::Perl->new($host, debug =3D> 1); =20
$ssh->login($user, $pass) ;
($stdout, $stderr, $exit) =3D $ssh->cmd("touch /tmp/$host-test");
if ( $stderr )
{
print "error $stderr" ;
exit 1;
}
exit;
=20
=20
=20
________________________________
From: ssh...@li...
[mailto:ssh...@li...] On Behalf Of
Frank Carreiro
Sent: Monday, November 13, 2006 3:11 PM
To: ssh...@li...; Chris Fernandez
Subject: Re: [Ssh-sftp-perl-users] problems with net-ssh-perl ...
pleasetake a look.
I guess not. I've sent a few messages and haven't heard back from
anyone. I've been wondering if there is a problem with sourceforge
forums or just a lack of interest :-)=20
>>> On Mon, Nov 13, 2006 at 1:06 pm, in message
<455...@vo...>, Chris Fernandez
<cfe...@vo...> wrote:
mobody in this list? :-(
Chris Fernandez wrote:
> sorry, I forgot to add that I get as and exit when it wont work if I
> wait to the end.
>
> Connection closed by remote host. at
> /usr/lib64/perl5/vendor_perl/5.8.8/Net/SSH/Perl/AuthMgr.pm line 142
>
> I think is waiting for me to do something and times me out..
>
>
> Chris Fernandez wrote:
> =20
>> my system is Gentoo GNU/Linux
>>
>> perl -V
>> Summary of my perl5 (revision 5 version 8 subversion 8)
configuration:
>> Platform:
>> osname=3Dlinux, osvers=3D2.6.16-gentoo-r13, =
archname=3Dx86_64-linux
>> uname=3D'linux vmware 2.6.16-gentoo-r13 #2 smp wed jul 19 10:44:27
edt
>> 2006 x86_64 intel(r) xeon(tm) cpu 2.80ghz gnulinux '
>! ;>&# 160; config_args=3D'-des -Darchname=3Dx86_64-linux
-Dcccdlflags=3D-fPIC
>> -Dccdlflags=3D-rdynamic -Dcc=3Dx86_64-pc-linux-gnu-gcc =
-Dprefix=3D/usr
>> -Dvendorprefix=3D/usr -Dsiteprefix=3D/usr -Dlocincpth=3D=20
>> -Doptimize=3D-march=3Dnocona -O2 -fomit-frame-pointer -pipe
-Duselargefiles
>> -Dd_semctl_semun -Dscriptdir=3D/usr/bin =
-Dman1dir=3D/usr/share/man/man1
>> -Dman3dir=3D/usr/share/man/man3 =
-Dinstallman1dir=3D/usr/share/man/man1
>> -Dinstallman3dir=3D/usr/share/man/man3 -Dman1ext=3D1 -Dman3ext=3D3pm
>> -Dinc_version_list=3D5.8.0 5.8.0/x86_64-linux 5.8.2 =
5.8.2/x86_64-linux
>> 5.8.4 5.8.4/x86_64-linux 5.8.5 5.8.5/x86_64-linux 5.8.6
>> 5.8.6/x86_64-linux 5.8.7 5.8.7/x86_64-linux -Dcf_by=3DGentoo -Ud_csh
>> -Dusenm -Ui_ndbm -Ui_gdbm -Di_db
>> -Dusrinc=3D/usr/include/gentoo-multilib/amd64 -Dlibpth=3D/! usr/loc
al/lib64
>> /lib64 /usr/lib64'
>> hint=3Drecommended, useposix=3Dtrue, d_sigaction=3Ddefine
>> usethreads=3Dundef use5005threads=3Dundef useithreads=3Dundef
>> usemultiplicity=3Dundef
>> useperlio=3Ddefine d_sfio=3Dundef uselargefiles=3Ddefine =
usesocks=3Dundef
>> use64bitint=3Ddefine use64bitall=3Ddefine uselongdouble=3Dundef
>> usemymalloc=3Dn, bincompat5005=3Dundef
>> Compiler:
>> cc=3D'x86_64-pc-linux-gnu-gcc', ccflags =3D'-fno-strict-aliasing =
-pipe
>> -Wdeclaration-after-statement -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=3D64
>> -I/usr/include/gdbm',
>> optimize=3D'-march=3Dnocona -O2 -fomit-frame-pointer -pipe&#! 39;, =
;
>> cppflags=3D'-fno-strict-aliasing -pipe =
-Wdeclaration-after-statement
>> -I/usr/include/gdbm'
>> ccversion=3D'', gccversion=3D'4.1.1 (Gentoo 4.1.1)', =
gccosandvers=3D''
>> intsize=3D4, longsize=3D8, ptrsize=3D8, doublesize=3D8, =
byteorder=3D12345678
>> d_longlong=3Ddefine, longlongsize=3D8, d_longdbl=3Ddefine,
longdblsize=3D16
>> ivtype=3D'long', ivsize=3D8, nvtype=3D'double', nvsize=3D8, =
Off_t=3D'off_t',
>> lseeksize=3D8
>> alignbytes=3D8, prototype=3Ddefine
>> Linker and Libraries:
>> ld=3D'x86_64-pc-linux-gnu-gcc', ldflags =3D' -L! /usr/lo =
cal/lib64'
>> libpth=3D/usr/local/lib64 /lib64 /usr/lib64
>> libs=3D-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
>> perllibs=3D-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
>> libc=3D/lib/libc-2.4.so, so=3Dso, useshrplib=3Dfalse, =
libperl=3Dlibperl.a
>> gnulibc_version=3D'2.4'
>> Dynamic Linking:
>> dlsrc=3Ddl_dlopen.xs, dlext=3Dso, d_dlsymun=3Dundef,
ccdlflags=3D'-rdynamic'
>> cccdlflags=3D'-fPIC', lddlflags=3D'-shared -L/usr/local/lib64'
>>
>>
>> Characteristics of this binary (from libperl):
>> Compile-time options: PERL_MALLOC_WRAP USE_64_BIT_ALL USE_64_BIT_INT
>> &! #160;&# 160; USE_LARGE_FILES USE_PERLIO
>> Built under linux
>> Compiled at Sep 21 2006 10:23:54
>> @INC:
>> /etc/perl
>> /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux
>> /usr/lib64/perl5/vendor_perl/5.8.8
>> /usr/lib64/perl5/vendor_perl
>> /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux
>> /usr/lib64/perl5/site_perl/5.8.8
>> /usr/lib64/perl5/site_perl
>> /usr/lib64/perl5/5.8.8/x86_64-linux
>> /usr/lib64/perl5/5.8.8
>> /usr/local/lib/site_perl
>>
>>
>>
>&! gt; The issue that I am having is very weird... my script will run
only
>> sometimes... the majority of the times looks like it just *hangs* and
is
>> very slow..
>> once in a while mostly when I have not try in 1m or more.. then it
runs
>> the first time I run it.. to go again into the *weird* status that
will
>> only run once in a while...
>>
>> why?
>> anyone had the same issue?
>> work around?
>> bug?
>> I will post portion of my code if needed but seen that it does works
>> sometimes makes me think it must be something else.
>> help!!!
>>
>> Thanks for your help in advance.
>> Chris
>>
>>
>>
------------------------------------------------------------------------
-
>> Using Tomcat but need to do more? Need to support web services,
security?
&g! t;> Get stuff done quickly with pre-integrated technology to make
your job easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
>>
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D=
121642
>> _______________________________________________
>> Ssh-sftp-perl-users mailing list
>> Ssh...@li...
>> https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users
>>
>> =20
>> =20
>
>
>
------------------------------------------------------------------------
-
> Using Tomcat but need to do more? Need to support web services,
security?
> Get stuff done quickly with pre-integrated technology to make your job
easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
> http://sel.as-us.falkag.net/se! l?c
md=3Dlnk&kid=3D120709&bid=3D263057&dat=3D121642
> _______________________________________________
> Ssh-sftp-perl-users mailing list
> Ssh...@li...
> https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users
>
> =20
------------------------------------------------------------------------
-
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D=
121642
_______________________________________________
Ssh-sftp-perl-users mailing list
Ssh...@li...
https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users
________________________________
NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
*****************************************************************
This message has originated from R. L. Polk & Co.,
26955 Northwestern Highway, Southfield, MI 48033.
R. L. Polk & Co. sends various types of email
communications. If this email message concerns the
potential licensing of a Polk product or service, and
you do not wish to receive further emails regarding Polk
products, forward this email to Do_...@po...
with the word "remove" in the subject line.
The email and any files transmitted with it are confidential
and intended solely for the individual or entity to whom they
are addressed.
If you have received this email in error, please delete this
message and notify the Polk System Administrator at
pos...@po....
*****************************************************************
=0D |