On Sat, 03 May 2008 16:46:27 +0200, Gilles <[EMAIL PROTECTED]> wrote: >What command-line FTP client would you recommend for this?
It looks like lftp is not running like I thought it would :/ Until I ran the following commands manually instead of through CRON, some files on the remote source FTP server dated May 6th/7th were not downloaded locally and then uploaded to the target remote FTP server: 1. Here's the script: # cat /var/sync.bash #!/usr/local/bin/bash echo "Downloading from Source FTP" lftp -u joe,sixpack -e "mirror -vn ./files /var/depot && bye" ftp.source.com echo "Uploading to Target FTP" lftp -u joe,sixpack -e "mirror -vnR /var/depot ./downloads && bye" ftp.target.com 2. When run manually: # ./sync.bash Downloading from Source FTP Total : 1 directory, 41 files, 0 symlinks Uploading to Target FTP Total : 1 directory, 41 files, 0 symlinks To be removed: 0 directories, 2 files, 0 symlinks 3. CRON: # crontab -l 5,35 * * * * /var/sync.bash >/dev/null 2>&1 => What does "To be removed: 0 directories, 2 files, 0 symlinks" actually mean? Thanks for any tip. _______________________________________________ firstname.lastname@example.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"