From owner-freebsd-questions Fri May 14 7:13:30 1999 Delivered-To: freebsd-questions@freebsd.org Received: from gaia.euronet.nl (gaia.euronet.nl [194.134.0.10]) by hub.freebsd.org (Postfix) with ESMTP id 5FB781537C for ; Fri, 14 May 1999 07:13:07 -0700 (PDT) (envelope-from roelof@eboa.com) Received: from charon.eboa.com (n669.telekabel.euronet.nl [194.134.130.170]) by gaia.euronet.nl (8.8.8/8.8.8) with ESMTP id QAA18879; Fri, 14 May 1999 16:13:07 +0200 (MET DST) Received: from eboa.com (roelof [10.0.0.2]) by charon.eboa.com (8.8.8/8.8.8) with ESMTP id QAA13815; Fri, 14 May 1999 16:13:02 +0200 Message-ID: <373C300D.5226E82E@eboa.com> Date: Fri, 14 May 1999 16:15:41 +0200 From: Roelof Osinga Organization: eboa - engineering buro Office Automation X-Mailer: Mozilla 4.51 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: Jonathan Chen Cc: freebsd-questions@freebsd.org Subject: Re: output in crontab References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jonathan Chen wrote: > > Best to fully path your filename. eg: > > */3 * * * * date > /tmp/stamp Even better is watching the right 'stamp' file . So this works. However, the one I need does not. The difference is that that one is a shell script: # This runs every 15 mins of every day 0,15,30,45 * * * * /root/Pinger/std_ping 1>> /root/Pinger/log/std_pings 2> /dev/null forseti:~/Pinger# cat std_ping #! /usr/local/bin/bash { date ; ping -s 1472 -c 40 ping.target | tail -n 2 ; } | ~/Pinger/ping_reform Aarrgghh!! The crontab has a different path. It couldn't find the ping command. So simple in hindsight. Next time I must remember to comment out the error redirects. And, of course, to put them back in once done. Which leads me to a different question. What would be the preferred way to make it so that the above script can be run by an ordinary user including the large ping size. Linux only limits flooding, so there it wasn't a problem. Anyone any thoughts? Roelof -- Home is where the (@) http://eboa.com/ is. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message