It is currently Mon, 30 Mar 2020 23:10:42 GMT



 
Author Message
 CDE & bash, how to execute .profile
Hi,

I am using CDE and wanted to use the 'bash' shell. I set the
DTSOURCEPROFILE=TRUE variable in the .dtprofile file, but the .profile
doesn't execute. It is only executed if I define the ksh or sh shell as
default in /etc/passwd.

How is it possible to source my .profile file automaticaly every time
that I log into CDE with bash as the default shell ?

Thanks a lot in advance for your help,
Regards,
Daniel



 Tue, 16 Jan 2001 03:00:00 GMT   
 CDE & bash, how to execute .profile
Hi,

if your login shell is 'bash', CDE(dtlogin) source the file
'~/.bash_profile'.

Make a link in your home dir: 'ln -s .profile .bash_profile'.

Regards
--
Olrik Just                      Phone  : +49-30-3463-7126
GMD Fokus, CC TIP               Fax    : +49-30-3463-8126
Kaiserin-Augusta-Allee 31       E-Mail : J...@Fokus.GMD.de
D-10589 Berlin, Germany                  J...@TU-Berlin.de



 Tue, 16 Jan 2001 03:00:00 GMT   
 CDE & bash, how to execute .profile

I tried, but it doesn't seem to work...
Any help would be appreciated.

- Show quoted text -



 Fri, 19 Jan 2001 03:00:00 GMT   
 CDE & bash, how to execute .profile
Hi Daniel,

first of all, i use Solaris2.6.

There is an logging file ('~/.dt/startlog')
It's possible to disable the logging in the '~/.dtprofile'.
Check this logging file.

The problem is in '/usr/dt/bin/Xsession'.

************************************************************

  if [ "$DTSOURCEPROFILE" = "true" ]
  then
    case ${SHELL##*/} in
       sh | jsh | ksh | dtksh) shellprofile="$HOME/.profile";;
       bash) shellprofile="$HOME/.bash_profile";;
       csh | tcsh) shellprofile="$HOME/.login";;
       zsh) shellprofile="$HOME/$DTPROFILE";;
       *) Log "non-standard shell $SHELL"
    esac
  fi

************************************************************

Another solution is to change '/usr/dt/bin/Xsession'.
Change the line:

       sh | jsh | ksh | dtksh) shellprofile="$HOME/.profile";;

to

       sh | jsh | ksh | dtksh | bash) shellprofile="$HOME/.profile";;

AND delete/comment out the line

       bash) shellprofile="$HOME/.bash_profile";;

Check the logging file what wil be happened.

Regards
Olrik Just

--
Olrik Just                      Phone  : +49-30-3463-7126
GMD Fokus, CC TIP               Fax    : +49-30-3463-8126
Kaiserin-Augusta-Allee 31       E-Mail : J...@Fokus.GMD.de
D-10589 Berlin, Germany                  J...@TU-Berlin.de



 Fri, 19 Jan 2001 03:00:00 GMT   
 CDE & bash, how to execute .profile

<snip>

<snip>

In your home directory is a file called .dtprofile. Edit this file. At the
end is a line that is commented out and says "DTSOURCEPROFILE=true".
Uncomment this line. The .dtprofile will try to convince you that
uncommenting this line may cause you problems, but I've never seen it
happen.

Regards,
BHalsey

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+   Billy Halsey - Unix Administrator (bhal...@ford.com)   +
+                                                          +
+ ALL COMMENTS IN THIS MESSAGE ARE MINE ALONE AND DO NOT   +
+ NECESSARILY REFLECT THOSE OF FORD MOTOR COMPANY.         +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



 Sun, 21 Jan 2001 03:00:00 GMT   
 
   [ 5 post ] 

Similar Threads

1. root's .profile does not get automatically executed under CDE

2. Failed to execute my .profile with the CDE desktop

3. /etc/profile not executed when using CDE ?

4. CDE problem, .profile to execute.

5. bash-logout not always executed with CDE

6. changing bash profile into csh profile?

7. BASH BASH BASH BASH BASH BASH BASH BASH BASH BASH

8. CDE & bash shell path issue

9. user .profile not executing

10. .profile: not executing


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software