From owner-freebsd-questions Fri Nov 15 8:39:41 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 41BBF37B401 for ; Fri, 15 Nov 2002 08:39:40 -0800 (PST) Received: from dexter.starfire.mn.org (starfire.skypoint.net [199.199.159.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79A8743E4A for ; Fri, 15 Nov 2002 08:39:38 -0800 (PST) (envelope-from john@dexter.starfire.mn.org) Received: (from john@localhost) by dexter.starfire.mn.org (8.11.3/8.11.3) id gAFGdVS82809 for freebsd-questions@freebsd.org; Fri, 15 Nov 2002 10:39:31 -0600 (CST) (envelope-from john) Date: Fri, 15 Nov 2002 10:39:31 -0600 From: John To: freebsd-questions@freebsd.org Subject: FTP and cron Message-ID: <20021115103931.A82781@starfire.mn.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi. I'm still running FreeBSD 4.3, but I suspect the problem isn't specific to that one operating system. I'm having fits running ftp from cron jobs. Shell or "expect" scripts that execute perfectly from the terminal fail in a seeminly non- deterministic variety of ways when run from cron. No, it's not something simple like cron not running expect, or ftp being in "non-interactive mode". The prework all runs correctly, I even set the hash byte count and get the feedback from that... when the put command starts, though, things get different! I get different progress messages, no hash marks, and apparently, no data transferred. The file NAME appears on the remote side, but is 0 length regardless of how long I wait. When I run the scripts from the terminal, it works fine. Can anyone lend any insight or point me in the right direction? Thanks! -- John Lind john@starfire.MN.ORG To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message