Problem solve Get help with specific problems with your technologies, process and projects.

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

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchSDN

SearchEnterpriseWAN

SearchUnifiedCommunications

SearchMobileComputing

SearchDataCenter

SearchITChannel

Close