From owner-freebsd-questions Thu Apr 9 00:59:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA19281 for freebsd-questions-outgoing; Thu, 9 Apr 1998 00:59:40 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA19276 for ; Thu, 9 Apr 1998 00:59:35 -0700 (PDT) (envelope-from grog@lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.8.7/8.8.5) with ESMTP id RAA15564; Thu, 9 Apr 1998 17:29:31 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id RAA05160; Thu, 9 Apr 1998 17:29:31 +0930 (CST) (envelope-from grog) Message-ID: <19980409172930.64515@freebie.lemis.com> Date: Thu, 9 Apr 1998 17:29:30 +0930 From: Greg Lehey To: Doug White , Chado Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Ping program not working from cron References: <3.0.3.32.19980408233735.0090d270@popmail.p3.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i In-Reply-To: ; from Doug White on Thu, Apr 09, 1998 at 12:15:36AM -0700 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 9 April 1998 at 0:15:36 -0700, Doug White wrote: > On Wed, 8 Apr 1998, Chado wrote: > >> Gents, >> >> I have written a program that pings hosts on our network and the internet. >> >> 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 you can run ping at all from cron? It may be erroring with a > `permission denied' or something like that ... In cron, the most likely problem is "file not found". Try specifying all program names with a full pathname (/sbin/ping, not ping). Greg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message