Telling whether the user is at the console

Conor P. Cahill cpcahil at virtech.uucp
Tue Oct 2 12:15:39 AEST 1990


In article <1990Oct1.204707.21038 at elroy.jpl.nasa.gov> pjs at aristotle.jpl.nasa.gov writes:
>What's the easiest way to tell from (1) a shell script; (2) a C
>program, whether the user process that called either of them was
>logged in at the console?  I've looked at /etc/utmp, but it seems

1. tty(1)
2. ttyname(3)

-- 
Conor P. Cahill            (703)430-9247        Virtual Technologies, Inc.,
uunet!virtech!cpcahil                           46030 Manekin Plaza, Suite 160
                                                Sterling, VA 22170 



More information about the Comp.unix.questions mailing list