Some more ideas on Scripting FTP

Here's a versatile little ftp script.

There is always more than one way to skin a cat, as they say...Here's a versatile little ftp script. #!/bin/ksh...

-x # set up variables LCD="/tmp" # local directory, to put patch LOGIN="anonymous" PASS="tmando@iname.com" DIR=/hp-ux_patches/s700_800/11.X PATCH="PHSS_number"

rm /tmp/batchftp.err
rm /tmp/batchftp.log

cd $LCD

/usr/bin/ftp -v -n >> /tmp/batchftp.log 2>> /tmp/batchftp.err < open ftp.itrc.hp.com
user $LOGIN $PASS
binary
cd $DIR
get $PATCH
quit
EOD

This was last published in January 2002

Dig Deeper on Network Performance Management

PRO+

Content

Find more PRO+ content and other member only offers, here.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchSDN

SearchEnterpriseWAN

SearchUnifiedCommunications

SearchMobileComputing

SearchDataCenter

SearchITChannel

Close