Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!jarthur!elroy.jpl.nasa.gov!aristotle!pjs From: pjs@aristotle.JPL.NASA.gov (Peter Scott) Newsgroups: comp.unix.questions Subject: Telling whether the user is at the console Message-ID: <1990Oct1.204707.21038@elroy.jpl.nasa.gov> Date: 1 Oct 90 20:47:07 GMT Sender: news@elroy.jpl.nasa.gov (Usenet) Reply-To: pjs@aristotle.jpl.nasa.gov Followup-To: comp.unix.questions Organization: Jet Propulsion Laboratory, NASA/Caltech Lines: 9 Nntp-Posting-Host: aristotle.jpl.nasa.gov 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 that there should be an easier way. -- This is news. This is your | Peter Scott, NASA/JPL/Caltech brain on news. Any questions? | (pjs@aristotle.jpl.nasa.gov)