From owner-freebsd-questions@FreeBSD.ORG Fri Nov 4 01:29:42 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 B0DD316A420 for ; Fri, 4 Nov 2005 01:29:42 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5842443D48 for ; Fri, 4 Nov 2005 01:29:40 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (patr530-a023.otenet.gr [212.205.215.23]) by rosebud.otenet.gr (8.13.4/8.13.4/Debian-1) with ESMTP id jA41TaqV001981; Fri, 4 Nov 2005 03:29:38 +0200 Received: from flame.pc (flame [127.0.0.1]) by flame.pc (8.13.4/8.13.4) with ESMTP id jA41TMTh001038; Fri, 4 Nov 2005 03:29:22 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by flame.pc (8.13.4/8.13.4/Submit) id jA41TMeV001037; Fri, 4 Nov 2005 03:29:22 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 4 Nov 2005 03:29:22 +0200 From: Giorgos Keramidas To: Brandon Hinesley Message-ID: <20051104012922.GA1025@flame.pc> References: <20051103215644.GA34288@flame.pc> <002401c5e0d7$64f3b1d0$6800a8c0@BrandonH> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002401c5e0d7$64f3b1d0$6800a8c0@BrandonH> Cc: freebsd-questions@freebsd.org Subject: Re: Cron Job will not run. 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, 04 Nov 2005 01:29:42 -0000 On 2005-11-03 16:33, Brandon Hinesley wrote: > > Okay, the problem seems to be with a certain part of my script. > Like I said, it works fine when I start it manually (./) > > I set up a few "checkpoints" if you will, and I determined that > it's this loop that cron has a problem with: > > for (( i = $numbkups ; i >= 2 ; i-- )) > do > let from=i-1 > mv -fv $dbkups/$from $dbkups/$i > done > > This loop never runs and neither does anything after it. I > don't see why cron would have any problem with this, or why > this would exit the script... Hmmm, what shell is this supposed to run in? It doesn't look like /bin/sh syntax to me.