Automating FTP PUT Jobs from UNIX to a Windows FTP Server
Last month I had to find a way to automate the transfer of files from a UNIX database server to a Windows fileshare via the pre-existing FTP method. This was previously executed manually. The trouble I ran into was passing the FTP commands from a UNIX shell script to the Windows FTP server (specifically, user credentials) correctly. Second, I also wanted to automate the process of archiving these files to a new directory after transfer. Here's what I came up with, variables requiring your modification in bold: ################################################################################ #************************* Script Title ****************************** # # Script Name: FTP PUT TO WINDOWS FTP SERVER # Script Filename: FTP_PUT_TO_WINFTPSERVER.sh # # #********************* Script Description ************************************ # # This shell script will look for files matching 'FTP_*.dat' and FTP any # found to a Windows FTP server, then archive them in a fold...