Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.hawaii.edu!news.uoregon.edu!vixen.cso.uiuc.edu!newsfeed.internetmci.com!news.mathworks.com!news-res.gsl.net!news.gsl.net!EU.net!usenet2.news.uk.psi.net!uknet!usenet1.news.uk.psi.net!uknet!psinntp!psinntp!psinntp!ivgreen2.cellerity.com!pubxfer.news.psi.net!alank-mac.mjr.com!user From: alank@mjr.com (Alan H. Katz) 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 Date: Wed, 03 Jul 1996 12:26:43 -0400 Organization: MJ Research, Inc. Lines: 20 Message-ID: <alank-0307961226430001@alank-mac.mjr.com> References: <Pine.SOL.3.93.960702171209.4062B-100000@gold.acns.fsu.edu> NNTP-Posting-Host: 199.29.25.21 Xref: euryale.cc.adfa.oz.au comp.sys.sun.admin:69950 alt.sys.sun:10364 comp.unix.bsd.misc:1206 comp.unix.programmer:39085 comp.unix.bsd.bsdi.misc:4224 comp.unix.admin:44450 In article <Pine.SOL.3.93.960702171209.4062B-100000@gold.acns.fsu.edu>, "Douglass E. Davis" <davis@gold.acns.fsu.edu> wrote: > 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. This sends a single ping to hostname and writes the output to outfile, then sleeps for 120 seconds. #!/bin/csh while (1) ping hostname 56 1 >>& outfile sleep 120 end -- Alan H. Katz | MJ Research, Inc. alank@mjr.com | 149 Grove St. 617-370-8128 | Watertown, MA 02172 Fax 617-923-8080 |