Re: How to tell if FTP file transferred correctly

From: Tony Condon (tony_at_acslhome.com)
Date: 05/28/04


Date: 28 May 2004 13:10:19 -0700


"Greg Hines" <greghines@bigfoot.com.nospam> wrote in message news:<40b59af0_1@news.iprimus.com.au>...
> Hi all,
>
> I'm using an FTP script to transfer several files via a slow ISDN connection
> from one SCO OSR5.0.5 to another OSR5.0.5.
>
> I've setup a .netrc file as:
>
> machine 192.168.0.5 login myname password mypassword
>
> The FTP script is:-
> ftp 192.168.0.5 << done
> binary
> prompt off
> put /tmp/$file1.tar.z
> put /tmp/$file2.tar.z
> put /tmp/$file3.tar.z
> done
>
> The above all works fine. However, I would like to somehow test if the file
> transfers completed successfully.
>
> Has anyone any ideas how this can be done?
>
> Thanks in advance,
>
> Greg

We've done this in the past by doing a 'dir' of the file sent and
capture that to a file and compare the received size with the sent
size.
-Tony



Relevant Pages