1832978 Members
2819 Online
110048 Solutions
New Discussion

.profile problems

 
SOLVED
Go to solution
Chris Fadrowski
Super Advisor

.profile problems

I am using RELECTION X to log into a hpux 11.0 server across the network. I thought i set up .profile correctly below

set -u # error if undefined variable.
trap "echo 'logoutroot'" # what to do on exit.
PS1=$LOGNAME@`hostname`:'$PWD'">"
SHELL=/bin/ksh
EDITOR=vi
export PS1 SHELL EDITOR


However, everytime i open up a terminal window, i am back to the # prompt. I have to keep running . /.profile to get
"user@hostname"

Why is this and what can i do to fix..?
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: .profile problems

Hi Chris:

I think all you need to do is edit your .dtprofile and set DTSOUREPROFILE=true.
If it ain't broke, I can fix that.
harry d brown jr
Honored Contributor

Re: .profile problems

How are you connecting? remsh, rlogin, telnet??
Live Free or Die
Chris Fadrowski
Super Advisor

Re: .profile problems

i am using REFLECTION X..

it is a software app the fully emulates a graphical environment. I hope you know what i mean, but it is basically like you are sitting at the console with a graphics card installed. it uses the full CDE, but connects thru telnet i would guess.
Sridhar Bhaskarla
Honored Contributor

Re: .profile problems

I assume you are talking about terminals in CDE session.

If so make sure you have these things.

Logout of the CDE and do a telnet to the system.

1. Create a file called .Xdefaults in the home directory and place this entry.

dtterm*loginShell: True

2. Edit .dtprofile in the home directory and make sure you have the entry

DTSOURCEPROFILE=true

Login to CDE and verify

-Sri


You may be disappointed if you fail, but you are doomed if you don't try
A. Clay Stephenson
Acclaimed Contributor

Re: .profile problems

Hi again:

I just checked with a ReflectionX login and this works for me:

PS1=`hostname`"@"'${PWD}'"> "
export PS1

to produce cstephen@prissy>

with DTSOURCEPROFILE=true

If it ain't broke, I can fix that.