*BSD News Article 60897


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!inquo!vyzynz!news1.cris.com!news2.acs.oakland.edu!izzy.net!news
From: rjwitte@rjwitte.com (Russel J. Witte)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: Cron problems
Date: Wed, 31 Jan 1996 11:08:17 GMT
Organization: RJ Witte & Associates
Lines: 26
Message-ID: <4enil2$rkh@izzy4.izzy.net>
References: <incs.1.00158B3E@mindspring.com>
NNTP-Posting-Host: rjwitte.izzy.net
X-Newsreader: Forte Free Agent 1.0.82

incs@mindspring.com (INCS) wrote:

>Hello out there, I need some assitance with setting up my cron/crontab entry.

>What i would like to do is ping an address 5 and 40 minute apart  within every 
>hour the server is operational.

>I readily admit that  know very little about unix,  however I do dabble  and 
>will  probably become more familiar with it over time.

>My crontab entry is 5,40 * * * * root  /sbin/ping  -c 198.41.0.5

What jumps out at me is that you're asking to ping a specific number
of times (-c) and then not specifying how many. Either remove the -c,
thus ensuring ONE ping, or add a number after -c and before the ip
address, e.g. ping -c 3 198.41.0.5. Good luck.


         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   Russ Witte                                RJ Witte & Associates   
   ***************                           40 S. Summit St. #2    
   rjwitte@aol.com                           Ypsilanti, MI  48197   
   rjwitte@izzy.net                          voice (313) 481-1267   
   http://www.rjwitte.com/                    fax (313) 480-0790   
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~