From owner-freebsd-hackers Thu Mar 5 16:14:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA13755 for freebsd-hackers-outgoing; Thu, 5 Mar 1998 16:14:38 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from gte.net (1Cust73.tnt1.lafayette.in.da.uu.net [208.254.19.73]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA13737 for ; Thu, 5 Mar 1998 16:14:23 -0800 (PST) (envelope-from bhlewis@gte.net) Received: from ylana.home.bhl (localhost.home.bhl [127.0.0.1]) by gte.net (8.8.8/8.8.8) with ESMTP id TAA13234; Thu, 5 Mar 1998 19:14:00 -0500 (EST) (envelope-from bhlewis@ylana.home.bhl) Message-Id: <199803060014.TAA13234@gte.net> X-Mailer: exmh version 2.0.2 2/24/98 To: Peter van Heusden cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Detecting state of PPP In-reply-to: Your message of "Sat, 05 Mar 1998 07:16:09 +0200." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 05 Mar 1998 19:14:00 -0500 From: Benjamin Lewis Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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