AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  script ftp multiple files

    Posted Wed May 13, 2009 02:08 AM

    Originally posted by: SystemAdmin


    We want to ftp a list of files from one server to another, the files are listed in a text file, say files.txt, how can we automate this in a script? is there a script I can use?
    #AIX-Forum


  • 2.  Re: script ftp multiple files

    Posted Wed May 13, 2009 03:41 AM

    Originally posted by: CRM


    You could use the .netrc file, see

    http://publib.boulder.ibm.com/infocenter/systems/index.jsp?topic=/com.ibm.aix.files/doc/aixfiles/netrc.htm

    Alternatively do you have scp?

    You could use scp after having done the public key exchange which is very easy to script.

    regards

    Chris
    #AIX-Forum


  • 3.  Re: script ftp multiple files

    Posted Wed May 13, 2009 05:58 AM

    Originally posted by: SystemAdmin


    You can also use rsync. It has an option that allows transfer of filelists out of a single file.

    rsync can use rsh/ssh, so either you use public keys with ssh or a .rhosts.

    rsync is available from the AIX Toolbox.
    #AIX-Forum