Computing.Net > Forums > Unix > how to know if a ftp transfer is really completed

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

how to know if a ftp transfer is really completed

Reply to Message Icon

Name: diego
Date: January 5, 2001 at 04:53:10 Pacific
Comment:

hi, when I use ftp (both for windows and unix), I always receive the message "transfer complete", but there is a way to really know if the transfer was successful ?? (with a perl program, maybe?)
thanks



Sponsored Link
Ads by Google

Response Number 1
Name: nick
Date: January 5, 2001 at 07:09:17 Pacific
Reply:

Why don't you check the file size? See if it matches on both machines? If you are using two unix machines. Run:

cksum

And compare the output. If you are going from NT to UNIX or back just simply compare file sizes.

If you want see an interactive byte transfer type 'hash' and it prints hash marks for every #k transfered.


0

Response Number 2
Name: diego
Date: January 5, 2001 at 07:44:12 Pacific
Reply:

thanks nick for the tips,
the question is that I generate every day an ascii file on a hp-ux machine, and I want to copy it into my NT workstation (with a cron job). I tried 'rcp' (from hp-ux) but it doesn't work, so ftp seems to be a better way. I want to be sure that the file is transferred correctly.
thanks again


0

Response Number 3
Name: Ryan Cooley
Date: January 7, 2001 at 01:02:26 Pacific
Reply:

Well, on the HP-UX machine, have it create a new file whose contents are only the CRC (or MD5 SUM) or the file it's named after. Transfer both files, have your NT box do the same thing and compare the CRCs or MD5. (I remember a program called DIFF on SIMTEL.NET that will output errorlevel 0 if the files are the same and errorlevel 1 if not) If the files are not the same, have the files transfered again.


A similar process is used on most FTP sites. You will find the file as well as a file with the same name, except ".sign" is appended to the filename. This ensures you don't get a corrupted file and/or a file that has been tampered with, from an FTP mirror.


0

Response Number 4
Name: Nick
Date: January 8, 2001 at 08:41:51 Pacific
Reply:

Install an FTP server on your NT workstation and set up your cron to ftp to that server.

'rcp' does not work with NT no does 'telnet' you need to install some third part software to get it to work.


0

Response Number 5
Name: Joe B
Date: January 9, 2001 at 21:20:06 Pacific
Reply:

Hey Diego and everyone, we have an HP-UX box at work and i'm running into a challenge, i figure since it relates a bit to your problem i might just post it here and ask you,
What i'm asked to do is basically send an ASCII file to my NT server, what I would like is to map out a drive on my NT server to the HP so i can see it on the network and grab files from it. Do you know of any software that would help me accomplish this, the only software I've looked at is Procomm Plus but thats too dangerous for what i'm trying to do.

Thanks
Joe.


0

Related Posts

See More



Response Number 6
Name: Nick
Date: January 18, 2001 at 09:25:41 Pacific
Reply:

SAMBA

http://us1.samba.org/samba/vendors/

Look under HP-UX


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: how to know if a ftp transfer is really completed

How can i know if a web page is run www.computing.net/answers/unix/how-can-i-know-if-a-web-page-is-run/7295.html

how to determine if device is busy www.computing.net/answers/unix/how-to-determine-if-device-is-busy/5376.html

How to remove '$' from a $ variable www.computing.net/answers/unix/how-to-remove-from-a-variable/7936.html