Dtlogin problem with tcsh

2007-12-25 11:46:00

> >

> > We are having a problem with CDE and dtlogin (under Solaris 2.6), when

> > users change their shell to tcsh in their login scripts

> > ( setenv SHELL /usr/local/bin/tcsh; exec $SHELL)

> > -- you then get the infamous black screen and then it logs you out again.

> > I have tried a couple of work-arounds but have been unsuccessful --

> > The startlog is as follows:

>

> The clue lies in .dtprofile. Firstly, it says

>

> ### With minor editing, it is possible to adapt your .profile or .login

> ### for use both with and without the desktop. Group the statements not

> ### appropriate for your desktop session into one section and enclose them

> ### with an "if" statement that checks for the setting of the "DT"

> ### environment variable. When the desktop reads your .profile or .login

> ### file, it will set "DT" to a non-empty value for which your .profile or

> ### .login can test.

>

> I give my user the following bit of code to change their $SHELL:

>

> # Is this an interactive shell?

>

> if ($?USER == 0 || $?prompt == 0) exit

>

> # Must be...

>

> # If we're not in the CDE startup stage, then change to tcsh

>

> if ( ! ${?DT} ) then

> if ( "$SHELL" == "/bin/csh" ) then

> setenv SHELL /bin/tcsh

> exec $SHELL

> endif

> endif

>

>

> Francis

> --

> Francis.Liu@uts.edu.au Talk: +61 2 9514 2091

> Senior Systems Programmer Fax : +61 2 9514 1999

> University of Technology, Sydney - Information Technology Division

>

> Holly: Well she [Kochanski] won't be of much use to you on Fiji now --

> not unless it snows and you need something to grit the path with.

> -- Red Dwarf `The End'

>

Thanks to all who applied ( this will work fine for our users, although

 implementing chsh and a few other things might make life easier).

Thanks

Greg W. Smith

Comments

Got something to say?

You must be logged in to post a comment.