*BSD News Article 73683


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!news.kei.com!newsfeed.internetmci.com!katbert.ipa.net!keyhole.west.spy.net!keyhole.west.spy.net!not-for-mail
From: dustin@keyhole.west.spy.net (Dustin Sallings)
Newsgroups: comp.sys.sun.admin,alt.sys.sun,comp.unix.bsd.misc,comp.unix.programmer,comp.unix.bsd.bsdi.misc,comp.unix.admin
Subject: Re: ping script
Followup-To: comp.sys.sun.admin,alt.sys.sun,comp.unix.bsd.misc,comp.unix.programmer,comp.unix.bsd.bsdi.misc,comp.unix.admin
Date: 14 Jul 1996 13:46:53 -0500
Organization: SPY Internetworking
Lines: 18
Distribution: world
Message-ID: <4sbfat$ll@keyhole.west.spy.net>
References: <Pine.SOL.3.93.960702171209.4062B-100000@gold.acns.fsu.edu>
Reply-To: dustin@spy.net
NNTP-Posting-Host: customs.west.spy.net
X-Newsreader: TIN [version 1.2 PL2]
Xref: euryale.cc.adfa.oz.au comp.sys.sun.admin:70492 alt.sys.sun:10402 comp.unix.bsd.misc:1244 comp.unix.programmer:39562 comp.unix.bsd.bsdi.misc:4307 comp.unix.admin:44847

Douglass E. Davis (davis@gold.acns.fsu.edu) wrote:

: 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.

	That's silly, do it in scotty or something that you can actually
ping from.  Don't use system.

-- 
IPA.net Sysadmin         My girlfriend asked me which one I like better.
pub  1024/3CAE01D5 1994/11/03 Dustin Sallings <dustin@spy.net>
|    Key fingerprint =  87 02 57 08 02 D0 DA D6  C8 0F 3E 65 51 98 D8 BE 
L_______________________ I hope the answer won't upset her. ____________