HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: History Variable - How to log all commands
Operating System - HP-UX
1834771
Members
3288
Online
110070
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
03-07-2001 01:40 AM
03-07-2001 01:40 AM
History Variable - How to log all commands
Hi. I'd like to know if it's possible to know, for a specific user, all the commands that have been executed. Though history variable , I am not sure about the results. If there are serveral connections or several csh's, how does .history file get updated????
What is the difference between history variable declared with set and setenv as well??
Thanks in advance,
Pablo
What is the difference between history variable declared with set and setenv as well??
Thanks in advance,
Pablo
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2001 02:30 AM
03-07-2001 02:30 AM
Re: History Variable - How to log all commands
Check the link. In the users .profile, include export ENV="$HOME/.cshrc"
Setup the shell variables:
export HISTFILE=~/.sh_history
export HISTSIZE=500
http://forums.itrc.hp.com:80/cm/QuestionAnswer/1,1150,0x3263dfe5920fd5118fef0090279cd0f9,00.html
http://forums.itrc.hp.com:80/cm/QuestionAnswer/1,1150,0x3263dfe5920fd5118fef0090279cd0f9,00.html
Setup the shell variables:
export HISTFILE=~/.sh_history
export HISTSIZE=500
http://forums.itrc.hp.com:80/cm/QuestionAnswer/1,1150,0x3263dfe5920fd5118fef0090279cd0f9,00.html
http://forums.itrc.hp.com:80/cm/QuestionAnswer/1,1150,0x3263dfe5920fd5118fef0090279cd0f9,00.html
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2001 03:00 AM
03-07-2001 03:00 AM
Re: History Variable - How to log all commands
Hi,
What do you call many connections? differents users using the same account from different location?
In that case you would have to include in .cshrc a way to recognize each account using theyr IP address or pts/tty to suffix your history file.
all the best
Victor
What do you call many connections? differents users using the same account from different location?
In that case you would have to include in .cshrc a way to recognize each account using theyr IP address or pts/tty to suffix your history file.
all the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2001 06:29 AM
03-07-2001 06:29 AM
Re: History Variable - How to log all commands
Is it possible to add to the .history file the date and time for every command??
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