[prev in list] [next in list] [prev in thread] [next in thread]
List: perl-win32-users
Subject: Trouble with net::ftp
From: Chad Tower <tower () cisco ! com>
Date: 2000-01-31 22:50:51
[Download RAW message or body]
How do you specify the destination file exactly? I'm trying to take an
array of filenames, and one by one ftp them over to another machine.
Basically, something like this:
$ftp = Net::FTP->new($destination);
$ftp->login($login, $password);
$ftp->cwd($StartDir);
$ftp->binary();
foreach $file (@files) {
$DestFile = $StartDir . "/" . $file;
$file =~ s!/!\\!g;
$LocalFile = $::new_installation . $file;
$ftp->put($LocalFile, $DestFile);
}
$ftp->quit;
This is where a LocalFile is a full path to an NT file, and DestFile is
a full path to a UNIX file. Each respective file path is appropriate to
the OS. Could it be failing because intermediate dirs may not exist on
the destination?
</Chad>
Want a free high speed, permanent DSL connection to the internet?
Click here:
http://i.winfire.com/s/isapiEng.dll/wf.exe?cmd=dl&190009820,20008,511&.exe
---
You are currently subscribed to perl-win32-users as: [perl-win32-users@progressive-comp.com]
To unsubscribe, forward this message to
leave-perl-win32-users-90392J@lyris.ActiveState.com
For non-automated Mailing List support, send email to
ListHelp@ActiveState.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic