- Community Home
- >
- Storage
- >
- Entry Storage Systems
- >
- Disk Enclosures
- >
- Execution of .login or .profile or .kshrc file
Disk Enclosures
1819794
Members
3192
Online
109607
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
Discussions
Discussions
Discussions
Forums
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
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
тАО05-25-2003 06:41 PM
тАО05-25-2003 06:41 PM
Execution of .login or .profile or .kshrc file
Hi Guys,
When we login to a system, the default shell is picked up from the /etc/passwd and then accordingly the default initiation files would be invoked, viz .profile for ksh and .login for csh. I have no doubt upto this.
Is there any trick by which I could get those initiation files automatically executed, every time I switch to another shell, so that I do not have set my environment manually.
TIA..
Suhas
When we login to a system, the default shell is picked up from the /etc/passwd and then accordingly the default initiation files would be invoked, viz .profile for ksh and .login for csh. I have no doubt upto this.
Is there any trick by which I could get those initiation files automatically executed, every time I switch to another shell, so that I do not have set my environment manually.
TIA..
Suhas
Never say "Die"
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-26-2003 12:45 AM
тАО05-26-2003 12:45 AM
Re: Execution of .login or .profile or .kshrc file
Hi,
Create a file, .cshrc for csh, .shrc for sh and set your enviroment there. This files is executed for every new shell (but .login and .profile only at login).
In the .profile you also need to set:
ENV=$HOME/.shrc ; export ENV
Create a file, .cshrc for csh, .shrc for sh and set your enviroment there. This files is executed for every new shell (but .login and .profile only at login).
In the .profile you also need to set:
ENV=$HOME/.shrc ; export ENV
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-26-2003 01:01 AM
тАО05-26-2003 01:01 AM
Re: Execution of .login or .profile or .kshrc file
leif is right.
Use .cshrc,.kshrc and .shrc for respective shells.
The purpose of those shells are as what you are looking for.
Thanks
Use .cshrc,.kshrc and .shrc for respective shells.
The purpose of those shells are as what you are looking for.
Thanks
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
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP