compare the timestamps of the file.

do an ftp 'ls -l' and record the timestamps.
do a significant pause, maybe 3 seconds and then check again. if the
timestamps match the file has probably (sorry it may hav bust) been
uploaded.

Regards

Marty

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Craig Sharp
> Sent: Monday 11 March 2002 17:04
> To: [EMAIL PROTECTED]
> Subject: [Perl-unix-users] Automatic ftp download script
>
>
> Ok, here is a good one.
>
> I need to be able to monitor a directory on an ftp server and
> then download the files when they have been uploaded to the server.
>
> The problem is how to determine when a file is there and if a
> file is there, that the file is done being uploaded from the source.
>
> I was going to look at a bot but I am sure that there is a way to
> automatically do this with perl.  I just dont know where to start.
>
> Thanks,
>
> Craig
>
> _______________________________________________
> Perl-Unix-Users mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to