#!/usr/bin/ksh
cd /tmp/ww
HOST='ftp.somehost.com'
USER='myusername'
PASSWD='mypassword'
FILE='somefilename.PGP'
LOCATION='remotefolder'
exec 4>&1
ftp -nv >&4 2>&4 |&
print -p open $HOST
print -p user $USER $PASSWD
print -p cd $LOCATION
print -p binary
print -p put $FILE
exit 0
Tuesday, December 30, 2008
Auto-ftp script
One of our Peoplesoft developers needed a script to ftp encrypted files to a vendor. Here's what I came up with:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment