From owner-freebsd-questions Thu Apr 9 08:32:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA11238 for freebsd-questions-outgoing; Thu, 9 Apr 1998 08:32:37 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA11202 for ; Thu, 9 Apr 1998 08:32:33 -0700 (PDT) (envelope-from dhw@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id IAA28022 for ; Thu, 9 Apr 1998 08:32:03 -0700 (PDT) Received: from pau-amma.whistle.com(207.76.205.64) by whistle.com via smap (V1.3) id sma028020; Thu Apr 9 08:31:41 1998 Received: (from dhw@localhost) by pau-amma.whistle.com (8.8.7/8.8.7) id IAA25761 for freebsd-questions@freebsd.org; Thu, 9 Apr 1998 08:31:41 -0700 (PDT) (envelope-from dhw) Date: Thu, 9 Apr 1998 08:31:41 -0700 (PDT) From: David Wolfskill Message-Id: <199804091531.IAA25761@pau-amma.whistle.com> To: freebsd-questions@FreeBSD.ORG Subject: Re: Ping program not working from cron Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Date: Wed, 08 Apr 1998 23:37:35 -0400 From: Chado >When I run it from the command line it works fine...but when I install it >in the cron it doesnt find any of the local machines. Are you sure the Perl script in question is even finding the "ping" program? cron has a rather limited environment... including the PATH (generally). Since you're using a Perl script, though, you could $ENV{'PATH'} .= ":/sbin:/bin:/usr/sbin:/usr/local/bin"; or some such thing before invoking external programs. david -- David Wolfskill dhw@whistle.com (650) 577-7158 pager: (650) 401-0168 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message