Operating System - HP-UX
1753936 Members
9535 Online
108811 Solutions
New Discussion юеВ

Re: Profile user file (edit)

 
Eli Daniel
Super Advisor

Profile user file (edit)

hi,
i have a question.

The server hp-ux 11.23 has installed SAP. the user SAP in the S.O is (SID)adm.

when the user (SID)adm login in the S.O, show the message

TERM = (hp)

I understand that the file profile is .profile in the home directory, but in the home directory the user exist files: .profile, .profile1. profile2.

which file edit?

anex the message.


8 REPLIES 8
James R. Ferguson
Acclaimed Contributor

Re: Profile user file (edit)

Hi:

The standard HP-UX Posix shell (or for that matter, the Korn shell) use '${HOME}/.profile'. The '.profile1' and '.profile2' files must be backup copies of some kind.

Regards!

...JRF...
Eli Daniel
Super Advisor

Re: Profile user file (edit)

Hi james

anex the file .profile



Dennis Handly
Acclaimed Contributor

Re: Profile user file (edit)

>show the message: TERM = (hp)

This most likely comes /etc/profile:
eval `ttytype -s -a`
Eli Daniel
Super Advisor

Re: Profile user file (edit)

Hi Dennis, I should do in the file /etc/profile???
James R. Ferguson
Acclaimed Contributor

Re: Profile user file (edit)

Hi (again) Eli:

What is it (exactly) that you want to do?

If you are running a terminal emulator, the query of the terminal (with 'ttytype') may not be delivering a value and hence the default setting is "hp". You can always hard set the terminal type (usually to something like 'vt100' or 'vt220' if that helps.

Describing your problem and your objective would be helpful.

Regards!

...JRF...
Ismail Azad
Esteemed Contributor

Re: Profile user file (edit)

Eli,

/etc/profile is a basic environment. In your query you mentioned "user", so i am assuming the startup script is for the user's shell and this is done on .profile which ovverides the basic environment. And it is extremely interesting to see a .profile1 and .profile2!!
Read, read and read... Then read again until you read "between the lines".....
Eli Daniel
Super Advisor

Re: Profile user file (edit)

Hi james.

how I can solve this issue?
when the user login in the server sidadm, show message. I delete that message

TERM = (hp)
Eli Daniel
Super Advisor

Re: Profile user file (edit)

Hi,
the problem was solved. In the home directory, edit .login

comment the next line:

#eval `tset -s -Q -m ':?hp' `