From owner-freebsd-questions@FreeBSD.ORG Sat May 10 00:24:11 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 A9E39106566B for ; Sat, 10 May 2008 00:24:11 +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 635948FC0C for ; Sat, 10 May 2008 00:24:11 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Jucsf-0001CC-67 for freebsd-questions@freebsd.org; Sat, 10 May 2008 00:24:05 +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 ; Sat, 10 May 2008 00:24:05 +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 ; Sat, 10 May 2008 00:24:05 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Gilles Date: Sat, 10 May 2008 02:23:45 +0200 Lines: 14 Message-ID: <3kq924pb5d5v2ofsgtfqs6dhds0t4mn55t@4ax.com> 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: Sat, 10 May 2008 00:24:11 -0000 On Sat, 10 May 2008 01:53:13 +0200, Gilles wrote: >It looks like lftp is not running like I thought it would Found what it was: The script worked fine when ran manually, but failed when ran by CRON because it couldn't locate lftp: Downloading from Source FTP /var/sync.bash: line 3: lftp: command not found Uploading to Target FTP /var/sync.bash: line 6: lftp: command not found Moral of the story: Start by leaving error messages as is before redirectering them to /dev/null once the script proved to work.