Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 May 2008 02:23:45 +0200
From:      Gilles <gilles.ganault@free.fr>
To:        freebsd-questions@freebsd.org
Subject:   Re: [CRON] Recommended FTP client to download and upload files?
Message-ID:  <3kq924pb5d5v2ofsgtfqs6dhds0t4mn55t@4ax.com>
References:  <9huo14p9l84vmr124kh8j8sjdgerh655cu@4ax.com> <aio924lv6a753and8frpovfuskujpdqj2s@4ax.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 10 May 2008 01:53:13 +0200, Gilles <gilles.ganault@free.fr>
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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3kq924pb5d5v2ofsgtfqs6dhds0t4mn55t>