Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2003
    Location
    Calcutta, India
    Posts
    42

    Red face Unanswered: FTP connection using FTP.pm and port number

    Hi!

    We have an PERL application whech deals with the data tranfer between 2 Unix servers. I want to establish the FTP connection to the destination server (d_host) at the port p1. I am able to connect to the d_host by using the command
    $FTPConn = Net::FTP->new($host_name) || die "Error Message";
    Now I want to add the port number while making this connection. How can I do this? Any help in this will of great help to me.

    Thanks in advance
    adityanlal

  2. #2
    Join Date
    Jul 2003
    Location
    Calcutta, India
    Posts
    42
    Anyone please help.......

    Thanks in advance
    adityanlal

  3. #3
    Join Date
    Jul 2003
    Location
    Calcutta, India
    Posts
    42

    Unhappy

    Anyone...Anyone...plz help..........

  4. #4
    Join Date
    Jul 2003
    Location
    Calcutta, India
    Posts
    42
    I got the answer, its liks, this is just FYI

    $FTPConn = Net::FTP->new($host_name, Port=>portnumber);

    P Should be in CAPS.

    Thanks
    adityanlal

Posting Permissions

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