in reply to Re: Perl FTP troubles
in thread Perl FTP troubles

Progress! It's at least a little different, now.

Error:

failed to retrieve file EGLL.TXT - Permission denied.

In your working example, were you able to get the file? I copypasted it, and only changed the destination path.

Replies are listed 'Best First'.
Re^3: Perl FTP troubles
by marto (Cardinal) on Apr 16, 2016 at 10:58 UTC

    Yes:

    D:\junk>type EGLL.TXT 2016/04/16 10:20 EGLL 161020Z AUTO 34008KT 300V040 9999 -RA BKN011/// OVC023/// //////T +CU 06/02 Q 1004 TEMPO RA

    Do you have appropriate permissions to create a file in the target path? I've also tested the following successfully:

    $ftp->get("$station_name", "..\\$station_name") or die "failed to retrieve file $station_name - ", $ftp->message;

      ...You nailed it. The script file didn't have write permissions.

      Thank you!