Bash profiles oh boy:)

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Chris Cox
Date:  
Subject: Bash profiles oh boy:)
Since pseudo terminals are use all the time by local logins... e.g.
xterms (though sessreg'd to usually show up as the display) etc.,
you may want to check your tty against the utmp
data (generally retrieve using who... but on Linux you'll need
to use 'w' to see where they came from). Just parse through
that and go!!

Regards,
Chris

If things are properly configured, the remote name should show up
> From: "Steven M. Klass" <>
> Organization: Andigilog Inc.
> To: "PLUG" <>
> Subject: Bash profiles oh boy:)
> Date: Wed, 16 May 2001 16:07:47 -0700
> Reply-To:
>
> Hey all,
>
>         Does anyone know a way to determine (in bash) if a user is comming from a 
> locally or remotely (ssh || rlogin || telnet etc..)?  

>
>         My .bash_profile is getting FAT!!

>