The UNIX and Linux Forums  


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




Thread: ftp
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 07-16-2008
Tytalus's Avatar
Tytalus Tytalus is offline Forum Advisor  
echo {1..9}^2\;|bc
  
 

Join Date: Jun 2003
Location: Scotland
Posts: 431
Think this should work:


Code:
ftp -n ${REMOTE_SERVER} <<END_SCRIPT
user  ${REMOTE_USER_ID} ${REMOTE_USER_PWD}
prompt
bin
cd ${REMOTE_SERVER_PATH}
put pc_extract.csv
quit
END_SCRIPT