Line in use?

Gert Doering (gert@greenie.muc.de)
Wed, 29 Sep 1999 16:28:19 +0200


Hi,

On Mon, Sep 27, 1999 at 12:00:35PM -0700, xy3@email.com wrote:
> Is there any way to tell when v/mgetty is using the phone line (from the point 
> at which the phone is ringing, to the end point at which it hangs up after a fax 
> or voice call?)

Sure - look at the UUCP lock file (/var/lock/LCK..ttyS*).

> I have many workstations that I'd like to notify when the line is in use (so 
> they don't interrupt current connections).  Is there a signal file somewhere 
> that would let me know when the line is in use, and when it is free to use?

Yes.

> When the log indicates a 
> 'waiting...' I think this is the only point at which the line will be free to 
> use. Is this true?  

Yes.

> Is there any reliable way to know when the line is in use 
> and when it is free to use? 

Just look at the LCK..* file.

gert
-- 
Gert Doering
Mobile communications ... right now writing from *Braunschweig* :-)) 
... mobile phone: +49 177 2160221 ... or mail me:  gert@greenie.muc.de