- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- BASH doesn´t read .profile i flogging into CDE-se...
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
05-06-2004 06:32 PM
05-06-2004 06:32 PM
On our HP-UX 11.23 I´ve installed bash 2.05b, (from the incl. DVD´s). If I log in to the system using telnet, bash reads /etc/profile and ~/.profile but if I use the graphical CDE it seems like all I get is the default bash environment without the additions I have inkluded in my ~/.profile.
Have I missed something? Thanks for your help.
/J
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 06:38 PM
05-06-2004 06:38 PM
Re: BASH doesn´t read .profile i flogging into CDE-session
Could you check your $HOME/.dtprofile and look if the line DTSOURCEPROFILE=true is uncommented ?
regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 06:41 PM
05-06-2004 06:41 PM
SolutionCDE doesn't read the .profile by default as well it shouldn't because any interactive commands in the .profile would hang the desktop.
THere are a few alternatives. Use .bashrc instead which gets read each time a new bash shell is started. Or, use the "-ls" flag to your terminal emulator e.g. xterm which also makes it a login shell and read .profile. You could put your environment stuff in $HOME/.dtprofile. FInally you could change DTSOURCEPROFILE=true in /usr/dt/config/sys.dtprofile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 06:42 PM
05-06-2004 06:42 PM
Re: BASH doesn´t read .profile i flogging into CDE-session
http://forums1.itrc.hp.com/service/forums/questionanswer.do?admit=716493758+1083912114825+28353475&threadId=65497
HTH,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 06:50 PM
05-06-2004 06:50 PM
Re: BASH doesn´t read .profile i flogging into CDE-session
I tried to uncomment the line "DTSOURCEPROFILE=true " but it didn't help. But if after copied my "~/.profile" to ~/.bashrc it seems to work fine. The man-page says: "When an interactive shell that is not a login shell is started, bash
reads and executes commands from ~/.bashrc, if that file exists.", so I guess that a CDE-session is not handled like an interactive login shell.
Anyhow, thank you for the tip and the fast answer Robert-Jan.
Best regards: /Jocke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2004 08:02 AM
05-10-2004 08:02 AM