Re: Non interactive ftp

From: Naylor, Jim (Jnaylor_at_SCHNUCKS.COM)
Date: 09/16/05

  • Next message: C. Antone: "Corey Antone/cantone/DFSI is out of the office."
    Date:         Fri, 16 Sep 2005 08:11:47 -0500
    To: aix-l@Princeton.EDU
    
    

    You can create a script with the following:
     
    echo "user username password" > ftp.txt
    echo "cd /some/directory" >> ftp.txt
    echo "put filename" >> ftp.txt
    echo "bye" >> ftp.txt
    ftp -nv xxx.xxx.xxx.xxx < ftp.txt > ftp.log

     

    Thanks,
    Jim Naylor
    Unix/Storage Systems Administrator
    Schnuck Markets, Inc.
    * Direct (314) 994-4784
    ))( Cell (314) 691-0186
          Fax (314) 994-4684
    * E-Mail jnaylor@schnucks.com

    -----Original Message-----
    From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU]On Behalf Of Faisalq@CYBER.NET.PK
    Sent: Friday, September 16, 2005 7:08 AM
    To: aix-l@Princeton.EDU
    Subject: Non interactive ftp

    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.


  • Next message: C. Antone: "Corey Antone/cantone/DFSI is out of the office."