Re: Non interactive ftp

From: Robert Binkley (leebinkley_at_YAHOO.COM)
Date: 09/17/05

  • Next message: Aron, Iming W.: "Bad Inode Map on /tmp"
    Date:         Sat, 17 Sep 2005 06:06:06 -0700
    To: aix-l@Princeton.EDU
    
    

    ftp
    prompt
    mget *

    --- Damir Delija <ddelija@PUBLIC.SRCE.HR> wrote:

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

    Robert Lee Binkley leebinkley@yahoo.com
     IBM AIX Specialist Certified
     HP-UX System Administration Certified
    Work It's Nice To Be Important But It's More Important To Be Nice


  • Next message: Aron, Iming W.: "Bad Inode Map on /tmp"

    Relevant Pages

    • Re: Non interactive ftp
      ... > Currently when we do ftp host, it asks for userid/password and then ... ftp host << EOF ... there are exmaples in "perl cookbook" by Oreyli ...
      (AIX-L)
    • Re: Capturing FTP messages in a script ??????????
      ... > I have a script where I'm doing a FTP. ... > It consists of PROMPT followed by a MGET xxxx* followed by quit. ...
      (comp.unix.aix)
    • Re: Downloading files from a ftp server
      ... In order for mget to work, you have to toggle off what is called ... "interactive prompting" with the prompt command: ... Moving files also will not work. ...
      (microsoft.public.scripting.vbscript)
    • Re: Davide Bianchi <davideyeahsure@onlyforfun.net> (was: Re: ftp -n linux equivalent)
      ... > mget * ... And if you type the commands at the ftp prompt ...
      (comp.os.linux.misc)
    • RE: Help : FTP A PDS
      ... [hit enter for every prompt - alternatively use the prompt command first to ... You can also disable the prompting during mget starting the FTP transfer if ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
      (bit.listserv.ibm-main)