Date: Thu, 05 Mar 1998 19:14:00 -0500 From: Benjamin Lewis <bhlewis@gte.net> To: Peter van Heusden <pvh@leftside.wcape.school.za> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Detecting state of PPP Message-ID: <199803060014.TAA13234@gte.net> In-Reply-To: Your message of "Sat, 05 Mar 1998 07:16:09 %2B0200." <Pine.BSF.3.95.980305071307.15655F-100000@leftside.wcape.school.za>
next in thread | previous in thread | raw e-mail | index | archive | help
pvh@leftside.wcape.school.za wrote: > How does one go about writing a program to check if a PPP link is up > or down? I've seen lots of complicated responses to this, so there is probably something inherintly wrong with what I've always done, check for the existence of the /var/spool/lock/LCK..cuaa? file. If there is a possibility that something else is using the serial line, one could check whether the PID in the file matches the PPP process. -Ben -- Benjamin Lewis bhlewis@gte.net -or- bhlewis@purdue.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803060014.TAA13234>