*BSD News Article 72680


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!mel.dit.csiro.au!actcsiro!news.nsw.CSIRO.AU!metro!metro!asstdc.scgt.oz.au!nsw.news.telstra.net!act.news.telstra.net!psgrain!usenet.eel.ufl.edu!news-res.gsl.net!news.gsl.net!news.mathworks.com!gatech!news.fsu.edu!gold.acns.fsu.edu!davis
From: "Douglass E. Davis" <davis@gold.acns.fsu.edu>
Newsgroups: comp.sys.sun.admin,alt.sys.sun,comp.unix.bsd.misc,comp.unix.programmer,comp.unix.bsd.bsdi.misc,comp.unix.admin
Subject: ping script
Date: Tue, 2 Jul 1996 17:18:46 -0400
Organization: Florida State University
Lines: 13
Message-ID: <Pine.SOL.3.93.960702171209.4062B-100000@gold.acns.fsu.edu>
NNTP-Posting-Host: gold.acns.fsu.edu
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Xref: euryale.cc.adfa.oz.au comp.sys.sun.admin:69894 alt.sys.sun:10359 comp.unix.bsd.misc:1199 comp.unix.programmer:39053 comp.unix.bsd.bsdi.misc:4210 comp.unix.admin:44398


I am trying to make a script that will ping a computer every few minutes
and run a program if there is no answer.  

I was thinking about making a C program to do the same thing. it would
just do a :
system("ping blazay > datafile ")
then it would read datafile  to see if the ping worked.

But if some one has a script or C program  that could do this I would
appreciate the source, or if you could just tell me how to do it.