🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs
Article #5

"who am i" from a ptty

#5
From: Warren Burstein
Date: Thu, 21 Nov 1985 03:58
6 lines
858 bytes
I just discovered that "who am i" prints nothing if stdin is a ptty.
It gets the name from ttyname, then searches /etc/utmp for a line
matching the ptty.  Since no one is logged in on a ptty it fails.

This was observed under Pyramid OS-X which pretends to be both BSD and
SysV.
Technical Details
Message-ID: <191@pluto.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!cmcl2!phri!pluto!warren

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site pluto.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!cmcl2!phri!pluto!warren
From: warren@pluto.UUCP (Warren Burstein)
Newsgroups: net.bugs
Subject: "who am i" from a ptty
Message-ID: <191@pluto.UUCP>
Date: Wed, 20-Nov-85 22:58:06 EST
Article-I.D.: pluto.191
Posted: Wed Nov 20 22:58:06 1985
Date-Received: Sun, 24-Nov-85 07:07:01 EST
Organization: Industrial Automation Systems Inc., New York, N.Y.
Lines: 6