- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /etc/profile or .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
тАО05-08-2001 10:58 AM
тАО05-08-2001 10:58 AM
Peter
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2001 11:05 AM
тАО05-08-2001 11:05 AM
Re: /etc/profile or .profile
/etc/profile is run first then .profile. There fore entries in .profile can override those in /etc/profile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2001 11:06 AM
тАО05-08-2001 11:06 AM
Re: /etc/profile or .profile
/etc/profile is for all, and so executed before $HOME/.profile
You should have your menu in the users .profile...
Well my 2 cents...
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2001 11:15 AM
тАО05-08-2001 11:15 AM
Solution/etc/profile should only contain system-wide, common initialization functions. The $HOME/.profile is the approriate place to customize functionality to an individual user's taste.
In point of fact, if you look at the "virgin" template for /etc/profile, namely 'usr/newconfig/etc/profile', you will see the comment "...system-wide profile file...This should be kept to the bare minimum every user needs".
Since /etc/profile is executed first, before $HOME/.profile, doing an 'exec' to a menu-script would mean that the $HOME/.profile would never run.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2001 08:32 PM
тАО05-09-2001 08:32 PM
Re: /etc/profile or .profile
To avoid putting the menu in the .profile of every user, you could try to make one file and make a symbolic link to it from every users homedirectory.
Also, you could put a test in the /etc/profile file, to see which user is logging in and start the appropiate menu from there.