Re: Non interactive ftp

From: Damir Delija (ddelija_at_PUBLIC.SRCE.HR)
Date: 09/16/05

  • Next message: Ayman Rayyan: "Re: HMC for P5"
    Date:         Fri, 16 Sep 2005 18:32:48 +0200
    To: aix-l@Princeton.EDU
    
    

    On Fri, Sep 16, 2005 at 05:08:19PM +0500, Faisalq@CYBER.NET.PK wrote:
    > Hi,
    >
    > Currently when we do ftp host, it asks for userid/password and then
    > put/get needs to be entered.
    >
    > How can this be done in batch mode, so that all files to be transferred
    > can be specified in one go and userid/password prompt is also not
    > displayed.
    >
    > Thanks.

    Hi !

    You can use .netrc mechanism to authenticate user
    and do transfer trough script, in here document

    like

    ftp host << EOF
    comands

    EOF

    but I suggest to use perl and net module
    you'll have full program control on transfer

    it is much more flexible but not so usuall,
    there are exmaples in "perl cookbook" by Oreyli

    Damir


  • Next message: Ayman Rayyan: "Re: HMC for P5"

    Relevant Pages

    • Re: Non interactive ftp
      ... >> Currently when we do ftp host, ... > userid/password and then ... > prompt is also not ...
      (AIX-L)
    • Non interactive ftp
      ... Currently when we do ftp host, it asks for userid/password and then ... put/get needs to be entered. ... How can this be done in batch mode, so that all files to be transferred ...
      (AIX-L)