FTP file transfer and confirmation --- URGENT
I am transferring 3 files to an ftp with the below procedure.
ftp -nvi ftpproxy <<EOF user [email]rfqhub-sec@ftpsecmaster.rfq-hub.com ABCDEFGH cd /ITG bin mput PATSecmast_ASIA_cms.gz PMDS_FX.gz PATPrices_ASIA_cms.gz quit EOF its transferring the files How do i confirm the files are successfully transferred to the ftp.. Any check for the time stamp or the file size.. |
A Google search for "how to verify FTP file transfer linux" turned up the following thread: "ftp file verification"
...basically, FTP doesn't include a remote verification method in the protocol ... you just have to download the file after the transfer, and then compare them |
Hi,
Your best bet is probably to use a tool like ncftpput, which is designed for use in scripts, and returns a return code to indicate success/failure. See http://www.ncftp.com/ncftp/ for more info. As an aside, you inadvertently posted your password in your question. I'd highly recommend that you edit the post to remove that, and change the password. Regards, Clifford |
All times are GMT -5. The time now is 09:28 AM. |