Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-21-2014, 02:03 AM   #1
Registered: Oct 2012
Posts: 34

Rep: Reputation: Disabled
FTP file transfer and confirmation --- URGENT

I am transferring 3 files to an ftp with the below procedure.

ftp -nvi ftpproxy <<EOF
user [email] ABCDEFGH
cd /ITG
mput PATSecmast_ASIA_cms.gz PMDS_FX.gz PATPrices_ASIA_cms.gz

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

Last edited by Vthimmap; 08-21-2014 at 03:38 AM. Reason: password protection
Old 08-21-2014, 02:40 AM   #2
Registered: Jan 2014
Location: Olympia, WA
Distribution: Debian / Tails
Posts: 47

Rep: Reputation: 10
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
Old 08-21-2014, 02:41 AM   #3
Registered: Jan 2012
Location: South Africa
Posts: 500

Rep: Reputation: 189Reputation: 189

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




Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
File transfer through ftp Linux - General 4 01-12-2012 08:49 AM
NFS or FTP for file transfer softstag Linux - Software 6 06-13-2011 07:00 AM
file transfer program in c using FTP client and FTP server renuaseri Linux - Newbie 2 01-29-2011 05:49 AM
ftp file transfer sgarci Linux - General 3 09-19-2006 02:41 PM
URGENT call to old school guys: Transfer a file from linux to Win95 via com1 or lpt1? khermans Linux - Networking 12 04-17-2005 05:23 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration