use ftp-upload in passive mode

From: Robby (robby.cauwerts_at_dataconsult.be)
Date: 02/25/04

  • Next message: Ian Cass: "Re: use ftp-upload in passive mode"
    Date: 25 Feb 2004 05:33:10 -0800
    
    

    Hi,

    my first contact with perl and I've got a little problem.
    I want to do an automatic ftp upload from an OpenBSD firewall using
    ftp-upload.
    I have got to do it in passive mode.
    Searching on CPAN:

    --passive
    Force the use of passive (PASV) transfers. Passive transfers are
    required with some firewall configurations, but if you have such you'd
    do better to configure Net::FTP so that it knows when to use them (see
    Net::Config). If you need to use passive transfers with certain
    (broken) servers, however, this switch is your best bet.
    Alternatively, you can set $FTP_PASSIVE to 1 in the environment (see
    Net::FTP).

    When reading the man page of ftp-up they don't mention the --pasive
    switch?
    According to search on CPAN, how exactly do I set the $FTP_PASSIVE to
    1?
    (can 't find it in the ftp-upload script)

    As perl is totally new to me any help is greatly appriciated.

    Robby


  • Next message: Ian Cass: "Re: use ftp-upload in passive mode"