HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Automatically Executing .PROFILE when using XTERM
Operating System - HP-UX
1829265
Members
9606
Online
109988
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
02-03-2003 01:14 PM
02-03-2003 01:14 PM
Automatically Executing .PROFILE when using XTERM
How can I automatically execute .PROFILE when I open up a new XTERM window.
I am using Korn Shell.
I am using Korn Shell.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2003 03:42 PM
02-03-2003 03:42 PM
Re: Automatically Executing .PROFILE when using XTERM
Hi there,
This should do it:
xterm -ls
-Cody G
This should do it:
xterm -ls
-Cody G
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2003 07:28 PM
02-03-2003 07:28 PM
Re: Automatically Executing .PROFILE when using XTERM
xterm -ls works fine but the problem is likely due to using CDE or VUE to start terminal windows. The designers for these window managers decided that xterm (or dtterm or hpterm) should start without a 'normal' login (don't ask, no one will admit knowing).
You could edit the window manager config files but I prefer to make sure that all methods to start the terminal emulator(s) will perform a true Unix login and run /etc/profile, then .profile (and if setup, .kshrc, etc). In that case, you can create a file in your $HOME directory called .Xdefaults. For each user of the system, have them do this one time:
echo *loginShell: true" >> $HOME/.Xdefaults
and now xterm (and dtterm and hpterm) will always login 'normally'.
Bill Hassell, sysadmin
You could edit the window manager config files but I prefer to make sure that all methods to start the terminal emulator(s) will perform a true Unix login and run /etc/profile, then .profile (and if setup, .kshrc, etc). In that case, you can create a file in your $HOME directory called .Xdefaults. For each user of the system, have them do this one time:
echo *loginShell: true" >> $HOME/.Xdefaults
and now xterm (and dtterm and hpterm) will always login 'normally'.
Bill Hassell, sysadmin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP