🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.unix.ultrix
2 messages
2 total messages Started by John D. Hansen Thu, 16 Dec 1993 04:49
DEC5000/200 .login file question
#8890
Author: John D. Hansen
Date: Thu, 16 Dec 1993 04:49
20 lines
1514 bytes
This should be a simple question:

I have a DECstation 5000/200 running ULTRIX 4.3.  There are several
tasks that I want the .login file to do only when I am sitting at
the console.

On our Sun workstations this is accomplished by:

if (`tty` == "/dev/console") then ....

This does not work on the DECstation because by the time the .login
script runs, the server has already started a DECterm as ttyp0.

This means we also can't use 

if (`tty` == "/dev/ttyp0") because this is true even for a remote login.

Any suggestions?  Please respond by e-mail: hansen@physics.ucla.edu.

Thanks in advance.  John Hansen
Re: DEC5000/200 .login file question
#8892
Author: Jay Vassos-Libove
Date: Fri, 17 Dec 1993 11:43
17 lines
1607 bytes
This is how I ascertain whether I'm logging in to the console
of an ULTRIX system.

In ~/.login -

set iam=`/usr/ucb/whoami`
set onconsole=`/bin/who | /usr/ucb/grep $iam | /usr/ucb/grep console | wc -l`
if ( $onconsole == 1 ) then
 [do whatever there is to do when I'm on the console]
endif

--

Jay Vassos-Libove                  libove@alf.dec.com
Digital Equipment Corporation      decwrl!alf.dec.com!libove
Atlanta Customer Support Center    Opinions? They're mine, mine, all mine!
Alpharetta, Georgia                and D.E.C. Can't have 'em!
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads