[clue-tech] Question for script wizards

Dennis J Perkins dennisjperkins at comcast.net
Thu Apr 9 22:07:51 MDT 2009


> 
> It would be the same for all other staff using this same machine and user.
> They all come in via ssh. Only real difference is what machine they are
> starting the ssh client from. 
> 
> I wasn't having any luck with tty or who or whoami. Maybe there is something
> about those that I don't know, though.
> 
> I think I may have found what I need to do, although I haven't done it yet.
> Apparently, ssh (usually according to man page) sets some vars. One of which
> is SSH_CONNECTION.
> 
> I'll parse that, find out what the client ip is, and then, based on that, I
> can decide to invoke bash or not in one of the scripts. Probably
> .bash_profile? 
> 

Since you only want it for login, yes.



More information about the clue-tech mailing list