[clue-tech] Question for script wizards

Dennis J Perkins dennisjperkins at comcast.net
Thu Apr 9 20:34:00 MDT 2009


On Thu, 2009-04-09 at 17:26 -0600, Sean LeBlanc wrote:
> On 04-09 22:32, dennisjperkins at comcast.net wrote:
> > I've never thought about it and I don't really use ssh since I have
> > nothing to ssh to, but wouldn't you get the login shell that is specified
> > for you in /etc/passwd? If so, can you change your login shell on each
> > remote host? 
> 
> I would, but it's the same user on the host. In other words, shared. I find
> myself typing "bash" everytime I log in. There is some other config I'd like
> to do to, too, but that's the first thing.


Try checking TERM.  I suspect when you are logged in locally, you are
using a desktop environment and a KDE or GNOME terminal program.  If so,
is your remote login shell different?  If yes, try this:

if [ "$TERM" = "term" ]; then
    exec bash
fi 



More information about the clue-tech mailing list