From owner-freebsd-questions Wed Apr 7 3: 7: 3 1999 Delivered-To: freebsd-questions@freebsd.org Received: from volodya.prime.net.ua (volodya.prime.net.ua [195.64.229.17]) by hub.freebsd.org (Postfix) with ESMTP id 3CAF614FA5 for ; Wed, 7 Apr 1999 03:06:50 -0700 (PDT) (envelope-from andyo@prime.net.ua) Received: from prime.net.ua (localhost.prime.net.ua [127.0.0.1]) by volodya.prime.net.ua (8.8.8/8.8.8) with ESMTP id NAA04748; Wed, 7 Apr 1999 13:11:29 +0300 (EEST) (envelope-from andyo@prime.net.ua) Message-ID: <370B2F4F.3A8990DC@prime.net.ua> Date: Wed, 07 Apr 1999 13:11:28 +0300 From: "Andy V. Oleynik" Organization: M-Info X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 2.2.7-RELEASE i386) X-Accept-Language: ru, uk, en MIME-Version: 1.0 To: Jamie Norwood Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Weird crontab/script problem References: <19990407013721.A15530@ethereal.net> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jamie Norwood wrote: > OK, I have a script I have written to send out some pings and record the > results. When I run it by hand, it works fine. When I put it in a crontab, it > never does anything. > > The script is simple and is as follows: > > --- > #/usr/local/bin/tcsh > > ping -c 100 208.166.54.1 > /tmp/ping.`date +%m.%d.%H.%M` > --- > This simplest command could be executed from crontab itself, isnt it? > > And the crontab: > > --- > > */5 * * * * /home/mistwolf/bin/pinggate > > --- > > Oddly, the following cron entry works fine: > > --- > > */5 * * * * touch /home/mistwolf/.crontouch > > --- > > Why? > > -- > -----BEGIN GEEK CODE BLOCK----- > Version: 3.1 > GCS d- s+:+ a--(?) C++++ UB++++ P+ L--(++) E-- W++(--) N++ O? > K w(---) O?>+ M?>+ V PS+ PE+ Y+ PGP->++ t+(*) 5+++ X++ R++ tv+ > b+ DI++++ D++ G e>+ h--- r+++ y+++** > ------END GEEK CODE BLOCK------ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- WBW Andy V. Oleynik (When U work in virtual office U have good chance to obtain virtual money ö%-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message