>on 03/16/2001 11:51 AM, Leland Beaudrot at [EMAIL PROTECTED] wrote:
>
>> Is there something I'm missing in Net::FTP? The script below works for
>> one file but not for another.
>>
>> #!/usr/in/perl
>>
>> use strict;
>> use Net::FTP;
>>
>> my $hostname = 'web.host.address';
>> my %hostoptn = ('Passive' => 1, 'Debug' => 1);
>> my $username = 'myusername';
>> my $password = 'mypassword';
>> my $home = 'my/home/directory';
>> my $file2ftp = 'My HD:My Folder:Another Folder:filename.html';
>> my $filename = 'filename.html';
>> my $ftp = Net::FTP->new($hostname, %hostoptn);
>> $ftp->login($username, $password);
>> $ftp->cwd($home);
>> $ftp->ascii;
>> $ftp->put($file2ftp);
>> $ftp->quit;
>>
>> This script works consistently for one file but not for another. On
>> failure, the server returns: "425 Data connection error".
>
>That's easy: you're using Macintosh directory separators for what is
>probably a different OS.
Where, exactly? The only place I see Mac directory separators is in
the local file name, where it's perfectly OK.
Personally I'd try getting rid of passive mode if that's possible.
>--
>Scott R. Godin | e-mail : [EMAIL PROTECTED]
>Laughing Dragon Services | web : http://www.webdragon.net/
--
--
Paul Schinder
[EMAIL PROTECTED]