Thursday 22 August 2013

Unix FTP from Oracle to Windows

########################################
#Transfer file to Windows from  Archive#
########################################

echo 'Trying to copy files into FTP folder'

   sftp -nv <<END_OF_REMOTE_DIR
   open 120.10.1.1
   user ${FTP_UNAME} ${FTP_PWD}
   lcd  $Oracle_DIR
   cd   $Windows_DIR 
   binary
   for  file in ${FILE_NAME}*.${FILE_EXT}
   do
   mput  *.txt
   done
   bye
END_OF_REMOTE_DIR

No comments:

Post a Comment