*BSD News Article 93060


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!dispatch.news.demon.net!demon!cuillin.demon.co.uk!cuillin.org.uk!usenet
From: Guy Dawson <guy@cuillin.org.uk>
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: 1) redirect stdio beck to my c program, 2)how can I ping with alive ?
Date: Mon, 07 Apr 1997 08:19:40 +0100
Organization: Cuillin
Message-ID: <3348A00C.41C67EA6@cuillin.org.uk>
References: <5i7um2$hcs@beet.tau.ac.il>
NNTP-Posting-Host: dearg.cuillin.org.uk
X-NNTP-Posting-Host: cuillin.demon.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.01Gold (X11; I; BSD/OS 2.0 i386)
Lines: 12
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.bsdi.misc:6607

Avidor Roye wrote:
>       continueing with all the messages follow,
>         2) how can i ping some one from "c" program and redirect the output
> 
>                 back to the program so i could test the results?

Use popen(3) to both run the ping command and capture it's output.

Guy
-- ---------------------------------------------------------------------
Guy Dawson @ SMTP - guy@cuillin.org.uk // ICBM - 6.15.16W 57.12.23N 986M
4.4>5.4 4.4>5.4 4.4>5.4 The Reality Check's in the Post! 4.4>5.4 4.4>5.4