I need to script the following task and place it in a cron;
I need to ftp two data files from our Unix Server to a common ftp file server. Once the file transfer is complete, I must send a header or flag file that tells a remote process on the ftp server tthat the transfer is complete otherwise I need to send a mailx out that indicates the transfer failed.
What would be the best way to determine if my transfer was complete. My first inclination is to compare file sizes between my local unix file and the remote ftp server file but am not clear on how to do that. I am unable to remotely connect to the ftp server with anything other than ftp. (ie. rsh ssh...) Any help would be appreciated.