Computing.Net > Forums > Unix > ftp script

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

ftp script

Reply to Message Icon

Name: prof_proof
Date: April 27, 2005 at 11:00:14 Pacific
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.



Sponsored Link
Ads by Google

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

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


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: ftp script

ftp script issue www.computing.net/answers/unix/ftp-script-issue/6675.html

UNIX FTP Scripting www.computing.net/answers/unix/unix-ftp-scripting/5999.html

adding date to ftp script...urgent www.computing.net/answers/unix/adding-date-to-ftp-scripturgent/5355.html