The only trick with this approach is knowing how to parse the output
from all the supported platforms/versions to return the up/down
indicator.  If we simply want to return the output from ping, this is
a rather simple way to meet that goal.  What does the OP want to see
the plugin return?

Axton Grams

On Feb 1, 2008 1:56 AM, William H. Will Du Chene <[EMAIL PROTECTED]> wrote:
> Why not circumvent the entire issue, and use "popen" and the existing ping
> binary? It's in stdio.h.
>
> That would eliminate the need for a shell script wrapper, allow for the
> development of a plugin within C, and make use of the existing ping binary
> which has already been designed to do the job... Best part - no root-ski
> required.
>
> --
>
>
> Will Du Chene
> [EMAIL PROTECTED]
> http://www.myspace.com/wduchene
>
> _______________________________________________________________________________
> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
> Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"
>

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"

Reply via email to