Re: FW: suggestion for sftp process
- From: "Paul Lalli" <mritty@xxxxxxxxx>
- Date: 15 Mar 2006 07:30:18 -0800
Curt Shaffer wrote:
This is what I have now:
my @files = $sftp->ls($remotedir);
foreach (@files){
$sftp->get("$_");
print "recieving $_...\n";
}
print "Complete!\n";
but what I get for each loop in debug is the following:
linuxbox: sftp: Sent message T:17 I:30
linuxbox sftp: Received stat reply T:101 I:30
Couldn't stat remote file: No such file or directory at ./sftptest line 24
recieving HASH(0x9dbb0ac)...
of course the HASH is different for each loop.
Any ideas?
Yes. My idea is that your reluctance to reading the documentation for
the module you're using is starting to get annoying.
type "perldoc Net::SFTP" at your command line, or visit
http://search.cpan.org/~dbrobins/Net-SFTP-0.10/lib/Net/SFTP.pm and
scroll down to where it talks about the ls() method. That will tell
you what that method returns. It describes the hash in detail.
Once you make an attempt at accessing the actual filename in that hash,
if it doesn't work, feel free to let us know.
Paul Lalli
.
- References:
- Re: FW: suggestion for sftp process
- From: Chas Owens
- RE: FW: suggestion for sftp process
- From: Curt Shaffer
- Re: FW: suggestion for sftp process
- Prev by Date: Re: hash defining
- Next by Date: Re: DBI/SQL question
- Previous by thread: RE: FW: suggestion for sftp process
- Next by thread: Re: FW: suggestion for sftp process
- Index(es):
Relevant Pages
|