LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-21-2014, 03:03 AM   #1
Vthimmap
Member
 
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]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..

Last edited by Vthimmap; 08-21-2014 at 04:38 AM. Reason: password protection
 
Old 08-21-2014, 03:40 AM   #2
jessetaylor84
Member
 
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, 03:41 AM   #3
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 481

Rep: Reputation: 179Reputation: 179
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
 
  


Reply


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 jitu.smart87@gmail.com Linux - General 4 01-12-2012 09:49 AM
NFS or FTP for file transfer softstag Linux - Software 6 06-13-2011 08:00 AM
file transfer program in c using FTP client and FTP server renuaseri Linux - Newbie 2 01-29-2011 06:49 AM
ftp file transfer sgarci Linux - General 3 09-19-2006 03: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 06:23 PM


All times are GMT -5. The time now is 12:15 PM.

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