- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: why i need not use export in .profile,but mus...
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
10-24-2004 09:14 PM
10-24-2004 09:14 PM
why i need not use export in .profile,but must use export in .dtprofile?
i need not use export in .profile to set
:
HISTFILE=~/.sh_history
HISTSIZE=40
but must use it in .dtprofile
to set these varaiables?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2004 12:04 AM
10-25-2004 12:04 AM
Re: why i need not use export in .profile,but must use export in .dtprofile?
HISTFILE=$HOME/.sh_history; export HISTFILE
Check the user's $HOME/.profile as well as the /etc/profile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2004 12:10 AM
10-25-2004 12:10 AM
Re: why i need not use export in .profile,but must use export in .dtprofile?
Every variable defined in .profile or profile has to be exported otherwise that will not be available for use in shell.
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2004 01:38 AM
10-25-2004 01:38 AM
Re: why i need not use export in .profile,but must use export in .dtprofile?
it can work well.
why?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2004 01:44 AM
10-25-2004 01:44 AM
Re: why i need not use export in .profile,but must use export in .dtprofile?
.profile and /etc/profile will not be executed.
Environment variables related CDE login will be exported in .dtprofile so that particular environment variable will be used on shell usage.
If you did not export environment variables, then it will be local to that script. It can not be accessed for all operations on current shell.
If you are going to use non-CDE login then make settings of HISTFILE environment variables on /etc/profile ( come profile ) or .profile ( user's profile).
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2004 07:49 PM
10-25-2004 07:49 PM
Re: why i need not use export in .profile,but must use export in .dtprofile?
uncomment line DTSOURCEPROFILE=true in .dtprofile and will read also the .profile
edi