- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: cde not sourcing .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
Discussions
Discussions
Forums
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
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
тАО08-28-2007 08:32 AM
тАО08-28-2007 08:32 AM
When I log into CDE on hpux 11.11 and start an xterm, my .profile is not executed.
I know about the .dtprofile last line and I have uncommented it but it is not sourcing my home folder .profile.
I know this has worked for me in the past.
What am I missing?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2007 08:37 AM
тАО08-28-2007 08:37 AM
Re: cde not sourcing .profile
# cd $HOME
# vi .dtprofile
uncomment the last line
DTSOURCEPROFILE=true
:wq!
exit CDE and login again.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2007 08:41 AM
тАО08-28-2007 08:41 AM
Re: cde not sourcing .profile
That is the problem. I have already done that:
>> I know about the .dtprofile last line and I have uncommented it but it is not sourcing my home folder .profile.
It is making a difference- my PS1 is different when dtsourceprofile is uncommented. But, for example, I have created some aliases in my .profile and they are not being read.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2007 08:49 AM
тАО08-28-2007 08:49 AM
Re: cde not sourcing .profile
Aliases in .profile would typically be lost when you invoke a new shell. They belong in your ENV file.
export ENV='${FILE[(_$-=1)+(_=0)-(_$-!=_${-%%*i*})]}'
export FILE=$HOME/.ksh_rc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2007 08:55 AM
тАО08-28-2007 08:55 AM
Re: cde not sourcing .profile
What about exported variables (ie. HISTSIZE), umask settings, and echo statements?
I have all of those in my .profile and none are reflected.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2007 09:04 AM
тАО08-28-2007 09:04 AM
Re: cde not sourcing .profile
Hmm, do you have to create a login shell when you open the xterm?
I would think this is related to the fact that xterm has nothing to do with CDE and it wants you to create dtterms.
But xterm takes: -ls
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2007 09:23 AM
тАО08-28-2007 09:23 AM
Re: cde not sourcing .profile
You are right.
I can create a new "launcher" for dtterm that has -ls and that works.
Do you know how I can modify the dtterm that is on the CDE front panel by default?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2007 02:20 PM
тАО08-28-2007 02:20 PM
SolutionDTSOURCEPROFILE is bad solution because it bypasses /etc/profile. To make all your terminal emulators (xterm, hpterm, dtterm) login normally, do this one time on each machine where you run an Xwindow emulator:
echo "*loginShell: true" >> $HOME/.Xdefaults
Now when you start a new terminal window, you see a 'normal' login starting with /etc/profile and then .profile when you login.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2007 02:46 PM
тАО08-28-2007 02:46 PM
Re: cde not sourcing .profile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2007 09:59 PM
тАО08-28-2007 09:59 PM
Re: cde not sourcing .profile
To resolve :
Vi $HOME/.Xdefaults and add :
*LoginShell : True
or set in /usr/dt/app-defaults/C/Dtterm etc ...