From owner-freebsd-questions@FreeBSD.ORG Fri May 9 23:53:33 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BBDE21065675 for ; Fri, 9 May 2008 23:53:33 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 761248FC0C for ; Fri, 9 May 2008 23:53:33 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JucP3-0008NF-V3 for freebsd-questions@freebsd.org; Fri, 09 May 2008 23:53:29 +0000 Received: from mar92-9-82-237-75-54.fbx.proxad.net ([82.237.75.54]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 May 2008 23:53:29 +0000 Received: from gilles.ganault by mar92-9-82-237-75-54.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 May 2008 23:53:29 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Gilles Date: Sat, 10 May 2008 01:53:13 +0200 Lines: 40 Message-ID: References: <9huo14p9l84vmr124kh8j8sjdgerh655cu@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: mar92-9-82-237-75-54.fbx.proxad.net X-Newsreader: Forte Agent 3.1/32.783 X-Antivirus: avast! (VPS 080509-0, 09/05/2008), Outbound message X-Antivirus-Status: Clean Sender: news Subject: Re: [CRON] Recommended FTP client to download and upload files? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 May 2008 23:53:33 -0000 On Sat, 03 May 2008 16:46:27 +0200, Gilles 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.