Professional Web Applications Themes

use ftp-upload in passive mode - PERL Modules

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 ...

  1. #1

    Default use ftp-upload in passive mode

    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
    Robby Guest

  2. #2

    Default Re: use ftp-upload in passive mode

    Robby wrote:
    > According to search on CPAN, how exactly do I set the $FTP_PASSIVE to
    > 1?
    You just set the env var at your (bash, ksh, sh) command prompt. Personally,
    I put it in my bash profile.

    FTP_PASSIVE=1
    export FTP_PASSIVE

    Then you just run your Net::FTP program.

    --
    Ian Cass



    Ian Cass Guest

Similar Threads

  1. Net::FTP : Passive mode does not work as doented.
    By ro.naldfi.scher@gmail.com in forum PERL Modules
    Replies: 1
    Last Post: June 30th, 08:58 AM
  2. ncftp 2.4.3 - passive mode not working?
    By Troy Piggins in forum Ubuntu
    Replies: 1
    Last Post: January 30th, 12:28 AM
  3. Upload Files with Safe Mode error
    By Martijn Wijma in forum PHP Development
    Replies: 0
    Last Post: October 12th, 07:47 PM
  4. NET::FTP Passive Mode and PORT command
    By Cgn in forum PERL Modules
    Replies: 4
    Last Post: April 6th, 05:32 PM
  5. The Problem with Passive Mode ftp server
    By Ken Kauffman in forum Linux Setup, Configuration & Administration
    Replies: 1
    Last Post: July 22nd, 04:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139