Re: Perl Net::Ping; (Win32)

From: Chris Knipe (cgknipe@mweb.co.za)
Date: Sat Oct 21 2000 - 11:55:59 EST


Don't we love repling to our own posts...

> > > # Do our monitoring here. These values are unique per DB
> > > entry.
> > > $ping = Net::Ping->new("icmp", 10);
> > > if (!($ping->ping($IPAddr))) {
> > > Notify_Mail($Email);
> > > Notify_Admins($LineNumber);
> > > };
> > > $ping->close();
> >
> > Does this work on any Unix systems without root privilege?
>
> Yup, it even works on NT machines *if* the running user has adminsitrative
> rights.

Correction... I didn't react on the "without" part..... I have not tested
it on Unix... If anyone is willing, it will be appreciated. On NT however,
works with administrative (root) rights...

---
Regards,
Chris Knipe
Cell: (083) 430-8151

- To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org



This archive was generated by hypermail 2b29 : Mon Oct 23 2000 - 21:00:25 EST