From owner-freebsd-questions@FreeBSD.ORG Thu May 13 19:34:17 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 6B42B16A4CE for ; Thu, 13 May 2004 19:34:17 -0700 (PDT) Received: from mx1.staff.pnc.com.au (mx1.staff.pnc.com.au [203.91.225.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 923D943D49 for ; Thu, 13 May 2004 19:34:16 -0700 (PDT) (envelope-from kiel@staff.pnc.com.au) Received: from localhost (localhost [127.0.0.1]) by mx1.staff.pnc.com.au (Postfix) with ESMTP id 29FC32EF9B for ; Fri, 14 May 2004 12:34:15 +1000 (EST) Received: from mx1.staff.pnc.com.au ([127.0.0.1]) by localhost (mackerel [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25313-02 for ; Fri, 14 May 2004 12:34:11 +1000 (EST) Received: from [10.0.0.121] (foo.staff.pnc.com.au [10.0.0.121]) by mx1.staff.pnc.com.au (Postfix) with ESMTP id ECC2B2EF9A for ; Fri, 14 May 2004 12:34:10 +1000 (EST) From: Kiel Stirling To: "freebsd-questions@FreeBSD. ORG" In-Reply-To: References: Content-Type: text/plain Message-Id: <1084502048.59300.2.camel@pc-kiel.staff.pnc.com.au> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Fri, 14 May 2004 12:34:10 +1000 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at staff.pnc.com.au Subject: Re: crontab perl script execution X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 May 2004 02:34:17 -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"; > ______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Regards, Kiel R Stirling. [Systems Admin/Programmer] [Planet Netcom P/L][http://portal.pnc.com.au] [+61 417 735 743 +61 2 4724 7013] --Love your enemies: they'll go crazy trying to figure out what you're up to.--