Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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

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.

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

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.

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.

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.

![]() |
![]() |
![]() |

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