LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   FTP file transfer and confirmation --- URGENT (https://www.linuxquestions.org/questions/linux-newbie-8/ftp-file-transfer-and-confirmation-urgent-4175515662/)

Vthimmap 08-21-2014 02:03 AM

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..

jessetaylor84 08-21-2014 02:40 AM

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

cliffordw 08-21-2014 02:41 AM

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.