From owner-freebsd-questions@FreeBSD.ORG Fri Nov 4 00:32:37 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 F27D516A41F for ; Fri, 4 Nov 2005 00:32:36 +0000 (GMT) (envelope-from brandonh@hotandcold.biz) Received: from mail.themarcomgroup.com (207-114-172-156.gen.twtelecom.net [207.114.172.156]) by mx1.FreeBSD.org (Postfix) with SMTP id 8840E43D45 for ; Fri, 4 Nov 2005 00:32:36 +0000 (GMT) (envelope-from brandonh@hotandcold.biz) Received: (qmail 26366 invoked from network); 4 Nov 2005 00:32:33 -0000 Received: from adsl-71-132-117-69.dsl.bkfd14.pacbell.net (HELO BrandonH) (71.132.117.69) by mail.themarcomgroup.com with SMTP; 4 Nov 2005 00:32:33 -0000 From: "Brandon Hinesley" To: "'Giorgos Keramidas'" Date: Thu, 3 Nov 2005 16:33:34 -0800 Organization: Advanced Mechanical Systems, Inc. Message-ID: <002401c5e0d7$64f3b1d0$6800a8c0@BrandonH> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcXgwYCN5CBNhGQMT6iWG9knBXLIKQADSejw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 In-Reply-To: <20051103215644.GA34288@flame.pc> 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 00:32:37 -0000 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...