The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 04-21-2006
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,763
Please consider searching the FAQ. This gets asked at least once a week --

Code:
#/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