Re: net::sftp ls() error

2010-07-12 Thread Matthew Tice
On Fri, Jul 9, 2010 at 10:42 AM, mtice wrote: > Hello, I'm trying to perform an ls() on a remote nested directory using > the Net::SFTP module. It's throwing back a strange error. If I do an ls() > at the root dir everything comes back fine - it's just the nested dir that > has an issue. > > H

RE: Net::SFTP

2007-10-24 Thread RICHARD FERNANDEZ
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of > Jeff Pang > Sent: Wednesday, October 24, 2007 8:22 AM > To: Octavian Rasnita > Cc: beginners perl > Subject: Re: Net::SFTP > > I have seen many guys on this list mentioned N

Re: Net::SFTP

2007-10-24 Thread Jeff Pang
I have seen many guys on this list mentioned Net::SSH install problems. Maybe you can force to install it without `make test` steps? On 10/24/07, Octavian Rasnita <[EMAIL PROTECTED]> wrote: > Hi, > > I want to use Net::SFTP so I need to install > > Net::SSH::Perl > > But at the following test it

Re: Net::SFTP questions

2007-08-13 Thread Don Scott
On 8/13/07, Don Scott <[EMAIL PROTECTED]> wrote: > use Net::SFTP; > > Net::SFTP->new($remotehost) > or die "could open connection to $remote_host\n"; > $sftp->get($remotedir$remotefile) > or die "could not get $remotefile\n"; > $sftp->do_remove($remotedir$remotefile) >

Re: Net::SFTP functions

2007-07-01 Thread rahed
[EMAIL PROTECTED] ("Octavian Rasnita") writes: > I couldn't make Net::SFTP to work under Windows. > I heard that there are some ways of making this module work under > Windows, but I couldn't make it to work. > > If there is someone who knows how to do that, please tell us. Install first gmp-4.2.

Re: Net::SFTP functions

2007-06-30 Thread Octavian Rasnita
From: <[EMAIL PROTECTED]> Octavian Rasnita > Ok I really don't get it. My folder tree is similar to that one: d:\shared\exports\Export.csv Ok, now I think I understand why it doesn't work. You are using Windows. I couldn't make Net::SFTP to work under Windows. I heard that there are some ways

Re: Net::SFTP functions

2007-06-29 Thread julien . laffitte
On 27 juin, 16:38, [EMAIL PROTECTED] (Oryann9) wrote: > --- Octavian Rasnita <[EMAIL PROTECTED]> wrote: > > > Hi, > > > You need to use: > > > $ftp->get("/path/to/remote/file", > > "/path/to/local/destination_file"); > > > Octavian > > Also you can use > > $remotedir = qq(/path/to/remoteserver/dir/

Re: Net::SFTP and different port than 22

2004-10-04 Thread John
quot; <[EMAIL PROTECTED]> Cc: "Perl Beginners" <[EMAIL PROTECTED]> Sent: Monday, October 04, 2004 6:27 PM Subject: Re: Net::SFTP and different port than 22 > On Mon, 4 Oct 2004, Chris Devers wrote: > > > On Mon, 4 Oct 2004, John wrote: > > > >> Can i defi

Re: Net::SFTP and different port than 22

2004-10-04 Thread Chris Devers
On Mon, 4 Oct 2004, Chris Devers wrote: On Mon, 4 Oct 2004, John wrote: Can i define a different port than 22 ? I don't see anything about specifying a port in the Net::SFTP docs, but the underlying SSH protocol does provide support for this, so it should be possible. Have you tried specifying t

Re: Net::SFTP and different port than 22

2004-10-04 Thread Chris Devers
On Mon, 4 Oct 2004, John wrote: Can i define a different port than 22 ? I don't see anything about specifying a port in the Net::SFTP docs, but the underlying SSH protocol does provide support for this, so it should be possible. Have you tried specifying the port as part of the host name? my

Re: Net::SFTP causes script to exit if connection can't be made

2002-12-16 Thread Dave Storrs
Zentara is right about what you need to do, but a fuller explanation of the solution would have been: Net::SFTP is throwing an exception when it cannot make the connection. If the exception is not caught, it will cause your program to exit. The way you catch exceptions in Perl is to wrap the cod

Re: Net::SFTP causes script to exit if connection can't be made

2002-12-14 Thread zentara
On Fri, 13 Dec 2002 11:10:54 -0500, [EMAIL PROTECTED] (Ian Zapczynski) wrote: >Unfortunately, using the || as below doesn't change the behavior. Once >my script tries to make the connection and can't, it exists with a >"connection failed to $host, etc. etc." message, whether I use warnings >or

Re: Net::SFTP causes script to exit if connection can't be made

2002-12-13 Thread Ian Zapczynski
Unfortunately, using the || as below doesn't change the behavior. Once my script tries to make the connection and can't, it exists with a "connection failed to $host, etc. etc." message, whether I use warnings or diagnostics or neither. If anyone can help me understand why this may be or if t

Re: Net::SFTP causes script to exit if connection can't be made

2002-12-12 Thread Mark Goland
how about #/usr/bin/perl -w > > use strict; > use Net::SFTP; > my ($sftp) = Net::SFTP->new("10.25.3.150", user=>"administrator", password=>"suite100") || warn "connection failed $!"; > if (!$sftp) { > print "I can't connect!"; > } else { > print "SUCCESS!"; > } > - Or

Re: Net::SFTP installation on Windows

2002-04-25 Thread Ahmed Moustafa
Ahmed Moustafa wrote: > How can I install Net::SSH and Net::SFTP on ActivePerl (Windows NT), please? Has anyone had Net:SFTP working on Windows? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]