From owner-freebsd-questions Thu Aug 8 13: 2:47 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 D919437B406 for ; Thu, 8 Aug 2002 13:02:43 -0700 (PDT) Received: from c3po.artlogix.com (sense-mcglk-240.oz.net [216.39.168.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4BCA43E4A for ; Thu, 8 Aug 2002 13:02:41 -0700 (PDT) (envelope-from mcglk@artlogix.com) Received: from ralf.artlogix.com.artlogix.com (ralf.artlogix.com [192.168.0.4]) by c3po.artlogix.com (Postfix) with ESMTP id F0D2D1A947; Thu, 8 Aug 2002 13:02:40 -0700 (PDT) To: "Cliff" Cc: Subject: Re: Cron running scripts References: <009201c23f5d$a48911b0$6401a8c0@tsunami> From: Ken McGlothlen Date: 08 Aug 2002 13:02:56 -0700 In-Reply-To: <009201c23f5d$a48911b0$6401a8c0@tsunami> Message-ID: <86sn1pdspb.fsf@ralf.artlogix.com> Lines: 22 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 "Cliff" writes: | I have a perl script that is run every night to backup some directories. The | output from the scripts says it completed fine, but nothing is actually | output. When I run the script manually it produces the same output, but it | actually writes the backup files. Why doesn't cron running the script do | this? So it's supposed to generate some backup files, but when it's run from the crontab, it doesn't work. There are several possibilities, but what this boils down to is that you need to do more error checking in your script to find out what's wrong. * Is the file being opened successfully? * Where is it? * Does it have the proper permissions? * Is it closed properly when the program's done? * Is it writing the appropriate data? Maybe there's nothing to output based on its input. Good luck with that. If you want me to take a look at the script, I'm willing. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message