Thanks for the replies. I've included the mail from Andrew Chan which
gives some other options.
The general response is that .dtprofile must be edited setting
This however did not solve my problem. Linking my .profile to
.bash_profile as suggested by Andrew prevented my CDE from logging in
for that user ?
Where can I set a variable so that it applies to all users, especially
scripts run in rc2.d etc.
I'd rather set it in one place and know it has been set and will apply,
then edit different users profiles. I tried setting it in
/etc/default/login but this didn't seem to work ?
Thanks in advance.
-- _____________________________________________ Mark Fergusson: firstname.lastname@example.org Dimension Data: PO Box 236, Pavillion, 3611, South Africa (+27)-204-8424 (Work) (+27)-204-8590 (Fax) 082-771-8519 (Cell)
attached mail follows:
Your problem is probably due to using bash as your shell and using .profile
instead of .bash_profile. If this is the case, you have a few choices.
1. link .profile to .bash_profile. I don't think this will affect regular bash
sessions, and the .bash_profile will be sourced before dtsession is started.
2. You can modify /usr/dt/bin/Xsession. Look around line #645.
3. Put the following in your .dtprofile
Hope this helps
> Date: Thu, 14 May 1998 16:38:41 -0400
> From: Mark Fergusson <email@example.com>
> To: firstname.lastname@example.org
> Subject: ps -ef shows "not sourcing .profile"
> Using Sun Solaris 2.5.1.
> I have a problem where a variable that I've assigned in my .profile does
> not set when I open a terminal on the machines CDE
> echo $VARIABLE gives a blank line.
> However, if I telnet to the machine, the varaiable is set.
> echo $VARIABLE gives
> Could this be related to:
> If I do a ps -ef I get:
> /usr/local/bin/bash -c echo 'not sourcing /export/home/spectrum/.profile
> (see / <unable to read the rest>
> Any comments will be appreciated. Thanks in advance.
> Mark Fergusson: email@example.com
> Dimension Data:
> PO Box 236, Pavillion, 3611, South Africa
> (+27)-204-8424 (Work)
> (+27)-204-8590 (Fax)
> 082-771-8519 (Cell)
Andrew Chan Home Work
E-Mail: firstname.lastname@example.org email@example.com
Phone: (416) 929-8794 (416) 392-8755
Fax: (416) 968-7948 (416) 392-4501
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:40 CDT