SUMMARY: Dtlogin problem with tcsh

From: gregory smith (gsmith@d.umn.edu)
Date: Sun Nov 08 1998 - 18:57:53 CST


> >
> > 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



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:52 CDT