From owner-freebsd-isp@FreeBSD.ORG Sat Jul 12 05:10:56 2003 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 425F637B401 for ; Sat, 12 Jul 2003 05:10:56 -0700 (PDT) Received: from web1.nexusinternetsolutions.net (web1.nexusinternetsolutions.net [206.47.131.12]) by mx1.FreeBSD.org (Postfix) with SMTP id 525E343F93 for ; Sat, 12 Jul 2003 05:10:55 -0700 (PDT) (envelope-from dave@hawk-systems.com) Received: (qmail 75980 invoked from network); 12 Jul 2003 12:10:51 -0000 Received: from unknown (HELO ws1) (24.157.103.51) by web1.nexusinternetsolutions.net with SMTP; 12 Jul 2003 12:10:51 -0000 From: "Dave [Hawk-Systems]" To: "Troy Settle" , "'FreeBSD ISP List'" Date: Sat, 12 Jul 2003 08:10:50 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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: <001401c34855$3cfbf0b0$0100a8c0@tws> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal Subject: RE: Cron /usr/local/bin/mrtg/usr/local/etc/mrtg/orion.cfg X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jul 2003 12:10:56 -0000 >> Use of uninitialized value in string at /usr/local/bin/mrtg line 66. >> Empty compile time value given to use lib at >> /usr/local/bin/mrtg line 66 >> Use of uninitialized value in concatenation (.) or string at >> /usr/local/bin/mrtg line 67. > > >Anyone know what's up with this? MRTG runs fine from the commandline, >but not from crontab. > > mrtg-2.9.29_1,1 > perl-5.8.0_6 > >Here's the offending code (lines 66 and 67): > > use lib "${FindBin::Bin}"; > use lib "${FindBin::Bin}${main::SL}..${main::SL}lib${main::SL}mrtg2"; $PATH missing for a reuired library above? in my experience, missing paths is uaually the reason for difference between running as shell and not running as cron. Dave