in reply to Re^2: Net::FTP get problem
in thread Net::FTP get problem

What are the permissions on the directory that contains your script. Try this script in the same directory as your script to check the directory is writable to by your webserver

#!/usr/bin/perl # testwrite.pl use strict; use Cwd; print "Content-type: text/plain\n\n"; my $cwd = cwd(); if ( open my $fh,'>',$cwd.'/testwrite' ){ print "OK $cwd is writable" } else { print "ERROR $cwd is NOT writable" }
poj

Replies are listed 'Best First'.
Re^4: Net::FTP get problem
by joedarock (Initiate) on Aug 01, 2017 at 11:07 UTC
    roboticus Yes, I can download from the directory with an FTP client and yes, your script executed and reported that the file is writable. I ran your script from the command line as well as from the web browser. I also ran my script from the command line instead of from the browser and still get the error message that it can't open the file.

      What is the pathname of the directory where your script is being executed and where do you want the hello.pl file downloaded to ?

      poj