On Wed, 14 Jul 2010 11:30:53 -0400, Veilleux, Jon L wrote:

>Could you use something like this in /etc/profile?
>
># This line accesses the bash shell for ssh logins
>case $TERM in dumb)
>     :   ;;
> vt100)
>     /PortedTools/bash/bin/bash;;
> vt340)
>     /PortedTools/bash/bin/bash;;
>*)
>esac
>
o When I ssh (again, to Solaris) with no command given,  my $TERM
  is "xterm-color".  I sometimes use other terminal types.  How
  many branches would you want in the case statement?

o When I supply a command, $TERM is unset and tty(1) says, "not a
  tty".  It's a noninteractive shell.  And I suspect it doesn't
  run /etc/profile.

o What if the user's preferred shell is not bash?

o bash will be entered before running ~/.profile, and the
  user will need to exit twice to logoff, and ~/.profile will
  finally run after the first of the two exits.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to