Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!cmcl2!adm!xadmx!drears@ardec.arpa From: drears@ardec.arpa (Dennis G. Rears (FSAC)) Newsgroups: comp.unix.wizards Subject: Re: script & lock Message-ID: <17992@adm.BRL.MIL> Date: 30 Dec 88 20:35:13 GMT Sender: news@adm.BRL.MIL Lines: 7 I like to thank everyone who responded to this. The problem was that getlogin() was returning NULL and I wasn't checking for it. When script runs it open /dev/ptyX as a tty which of course isn't in utmp. I have taken the advice to use it based upon uid. Dennis