- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- understanding /etc/profile
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2004 11:09 PM
03-07-2004 11:09 PM
I made a change in /etc/profile setting my primary promt. I thought that this file is read every time a user logs in (and so the prompt is set) but this does not happen on my machine.
Once my CDE-session has started and in a ksh I login as the same user again the change to the prompt is made.
What am I missing? I'm using HPUX 10.20 and a ksh.
Best regards,
Aleksandar Vujevic
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2004 11:12 PM
03-07-2004 11:12 PM
Re: understanding /etc/profile
Check your /$HOME/.dtprofile
uncomment the last line
DTSOURCEPROFILE=true
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2004 11:14 PM
03-07-2004 11:14 PM
SolutionTHe way around your problem is to change CDE so that when you start a terminal, it starts your favourite terminal emulator with a "-ls" argument.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2004 11:57 PM
03-07-2004 11:57 PM
Re: understanding /etc/profile
It uses a file called .dtprofile
Some of the newer X emulation packages like Hummingbird Exceed v9 does use /etc/profile. At least that appears to be the case with me, but its hard to tell what the factor is. We also have gnome 1.4 installed on all of our boxes as primary graphical environment.
Yet on the same box Exceed v7 does not read /etc/profile at all.
Interesting.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2004 12:14 AM
03-08-2004 12:14 AM
Re: understanding /etc/profile
Here's our .dtprofile:
DTSOURCEPROFILE=true
. /etc/profile;
This will guarantee that /etc/profile gets run in the CDE environment.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2004 04:21 AM
03-08-2004 04:21 AM
Re: understanding /etc/profile
I usually modify the file:
/usr/dt/app-defaults/C/Dtterm:
*loginShell: true
such that CDE uses '-ls' flag for dtterm. You must rebuild you CDE Home session, if you have one, or close all dtterms and logout if you use CDE with 'resume session' (or what is it called).
A disadvantage is that at the next OS upgrade you may loose the modification.
The advantage is that you only need to modify 2 systemwide files (/etc/profile and the file mentioned above).
JP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2004 05:43 AM
03-08-2004 05:43 AM
Re: understanding /etc/profile
I personally like Jeroen's way best!
Aleks