From owner-freebsd-questions@FreeBSD.ORG Thu May 13 20:32:33 2004 Return-Path: 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 7A1C716A4CE for ; Thu, 13 May 2004 20:32:33 -0700 (PDT) Received: from mta10.adelphia.net (mta10.adelphia.net [68.168.78.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id C554E43D46 for ; Thu, 13 May 2004 20:32:32 -0700 (PDT) (envelope-from Barbish3@adelphia.net) Received: from barbish ([67.20.101.71]) by mta10.adelphia.net (InterMail vM.5.01.06.08 201-253-122-130-108-20031117) with SMTP id <20040514033232.YRLM8065.mta10.adelphia.net@barbish>; Thu, 13 May 2004 23:32:32 -0400 From: "JJB" To: "Kiel Stirling" , "freebsd-questions@FreeBSD. ORG" Date: Thu, 13 May 2004 23:32:31 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Importance: Normal Subject: RE: crontab perl script execution X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Barbish3@adelphia.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 May 2004 03:32:33 -0000 On Fri, 2004-05-14 at 12:27, JJB wrote: > I have perl script A. which runs 2 other perl scripts B. & C. When A > is run from command line B & C get run. When I put script A in > /etc/corntab I can see that A does in deed get run, but scripts B & > C do not. I looked in /var/log/cron and /var/log/messages for error > messages but there are none. Here are the perl A script statements > which launch B & C scripts > system("/root/bin/A.pl"); and system("/root/bin/B.pl"); As an side > note perl scripts B & C create an sendmail Email if that matters. > Running 4.9. > Any body have any idea why this is happening? > Are the scripts marked as executable and does the 1st line reflect the location of Perl? If not I say that u need to add /usr/bin/perl before the path to the scripts. system "/usr/bin/perl /root/bin/A.pl"; system "/usr/bin/perl /root/bin/B.pl"; ******************************************** Yes B & C scripts are marked as executable and the first line of the script have the path to perl. The /etc/corntab file has an path variable that points to /usr/bin shouldn't that cover /usr/bin/perl? ******************************************** Adding /usr/bin/perl to corntab path statement took care of problem. Thanks for the hint that made me think about that corntab path statement.