ftp only files created today

From: Andy Cohen <Andy.Cohen_at_cognex.com>
Date: Thu, 05 Apr 2001 16:43:37 -0400

Hi,

I'm trying to write a shell script that will run nightly from cron to ftp
files from an alphaserver to a sun box. The directory on the alphaserver
has lots of large files but I only want to copy files that have been created
in the last day. I can find these files (with the find) command but I don't
know how to get this information to ftp. Is there some way I can pipe it to
ftp? Should I redirect the output from find to a file and then have the
script loop through this file and ftp the files listed in this file? If I
do the latter method my sense is that I will be opening and closing the ftp
connection for each file and since there could be several hundred files
should I be concerned about that?

Thanks in advance!
Andy
Received on Thu Apr 05 2001 - 20:44:35 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT