uugetty & lock files

Michael Katzmann michael at fe2o3.UUCP
Fri Sep 7 02:48:50 AEST 1990


I have a Sys V.3 system with HDB uucp. The system is at home and
it shares the phoneline. So that it won't answer the phone every time,
I run a programme with cron that tells the modem (hayes 2400) to 
enable auto answer only at specific times (a window that the machine
that rings me up knows about).

This programme looks to see if a lockfile is present /usr/spool/locks/LCK..tty1,
before blindly writting out to the line.

The problem:
	uugetty seems to create a lockfile when a character is first received.
I dont know when it is removed (perhaps after uugetty is restarted after a 
login), however if it was just noise and no login is successful the lockfile,
it seems, is never removed.
Thus the auto-answer enable programme will not enable the modem and because
no successful login will take place if the phone is not auto-answered the
lock file will not be removed.

Any ideas anyone?
B.T.W. if no garbage is received on the line things work ok.
Perhaps there is a better way to enable auto-answer from HDB uucp.

						Thanks

---------------------------------------------------------------------
email to 
UUCP:       uunet!mimsy!{arinc,fe2o3}!vk2bea!michael
						  _ _ _                    _
 	Amateur	|    VK2BEA	(Australia)      ' ) ) )      /           //
 	Radio	|    G4NYV	(United Kingdom)  / / / o _. /_  __.  _  //
	Stations|    NV3Z	(United States)	 / ' (_<_(__/ /_(_/|_</_</_

Michael Katzmann
Broadcast Sports Technology.
2135 Espey Ct. #4
Crofton Md. 21114 USA

Ph: +1 301 721 5151



More information about the Comp.unix.questions mailing list