Computing.Net > Forums > Unix > ftp script

ftp script

Reply to Message Icon

Original Message
Name: prof_proof
Date: April 27, 2005 at 11:00:14 Pacific
Subject: ftp script
OS: AIX 5.3
CPU/Ram: 4
Comment:

Does anyone have a script that will ftp any single file from one machine to multiple machines all in one shot? A mass ftp from a host to a selected amount of servers.


Report Offensive Message For Removal


Response Number 1
Name: Luke Chi
Date: April 27, 2005 at 19:01:11 Pacific
Reply: (edit)

for REMOTE_HOST in $@
ftp -n $REMOTE_HOST <<EOF
user $FROM_USERNAME $FROM_PASSWORD
binary
promp
cd $REMOTE_DIR_READY
mput $LOCAL_FILE_LIST
EOF


Luke Chi


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: ftp script

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge