- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Session level history to be enabled instead of...
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
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
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
тАО04-16-2003 11:05 PM
тАО04-16-2003 11:05 PM
I have HP-UX 11.11. Presently our history file is generated on user level. Is there any way I can get session level history?
Thanks in advance
Paresh Kalathia
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2003 11:17 PM
тАО04-16-2003 11:17 PM
Re: Session level history to be enabled instead of user level.
add the following in your .profile -
> ~/.sh_history
# EOF
- ramd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2003 11:45 PM
тАО04-16-2003 11:45 PM
Re: Session level history to be enabled instead of user level.
what if I am logging in using same username on different terminals at the same time? I will be having multipal sessions at the same time, so when ever I will run some command,it will update my history file and if I press Esc+k even from other session, I will get same command from history file. What if I want to avoid this?
Paresh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2003 12:07 AM
тАО04-17-2003 12:07 AM
SolutionHISTFILE=${HOME}/.history_files/.hist.`who am i|awk '{print $1}'`.$$.`date +%d%m%y.%H%M`
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2003 03:09 AM
тАО04-17-2003 03:09 AM
Re: Session level history to be enabled instead of user level.
tty1=`who am i|awk '{print $2}'`
tty=`basename $tty1`
pid1=`ps |grep sh | awk '{print $1}'`
pid=`echo $pid1 | awk '{print $1}'`
echo $pid.$tty
export HISTFILE=$HOME/hst/.parlog.$pid.$tty
Any way thanks for giving very good suggestion.