Xref: utzoo comp.unix.questions:25281 comp.bugs.sys5:1349 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!ark1!oasys!mimsy!fe2o3!michael From: michael@fe2o3.UUCP (Michael Katzmann) Newsgroups: comp.unix.questions,comp.bugs.sys5 Subject: uugetty & lock files Message-ID: <384@fe2o3.UUCP> Date: 6 Sep 90 16:48:50 GMT Followup-To: comp.unix.questions Organization: Rusty's BSD machine at home Lines: 38 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) / ' (_<_(__/ /_(_/|_