Hi all
has anyone got a code snippet of how i can ftp a file automatically by running a simple bash script. I have 4 things
IP address xx.xxx.xx.xx
username=satnam
domain = app.sample.ftp
password= satnam_password
Im not sure how to pull these all together to ftp a file?
any ideas?
Please consider searching the FAQ. This gets asked at least once a week --
#/bin/ksh
# $1 is the file name
# usage: this_script <filename>
IP_address="xx.xxx.xx.xx"
username="satnam"
domain = app.sample.ftp
password= satnam_password
echo "
verbose
open $IP_address
USER $username $password
put $1
bye
" > ftp -n > ftp_$$.log