On Thu, 24 Feb 2005, Dan Fish wrote:

> I'm looking for a script that I can set up to periodically poll an ftp site,
> download all available files in a specified directory, and then delete the
> remote files.  (Sorta like a mirror script with remote delete)

Have you looked at ncftp? The `ncftpget` tool looks useful for you:

    $ ncftpget --help | egrep -i 'delete|recurs'
      -DD    Delete remote file after successfully downloading it.
      -R     Recursive mode; copy whole directory trees.
      -T     Do not try to use TAR mode with Recursive mode.
    $

This should become a one line cron job now.

 

-- 
Chris Devers

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to