- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Shell history not being written to specified histo...
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-03-2009 05:27 AM
тАО05-03-2009 05:27 AM
Re: Shell history not being written to specified history file
remove the default historyfile and retry again - perhaps this helps.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-15-2010 08:35 AM
тАО01-15-2010 08:35 AM
Re: Shell history not being written to specified history file
I have checked all the items in this thread and nothing seems to be causing the problem.
Scott
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2010 06:35 PM
тАО01-16-2010 06:35 PM
Re: Shell history not being written to specified history file
I believe that this is the problem. The POSIX shells (like ksh, HP's sh, bash, etc) create specialized binary file for the shell history. 99% of the file is ASCII but there are binary codes scattered throughout the file. The first 2 characters in a .sh_history file are SOH (CTRL-A or 0x01). You can see the effect when you edit .sh_history with vi (to remove traces of a mistake). Once edited, the history command (or fc -l) reports blank line numbers in the file. It appears that deleting or adding a line corrupts the file.
This problem comes up when trying to add a timestamp to the shell history file.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2010 11:44 AM
тАО01-17-2010 11:44 AM
Re: Shell history not being written to specified history file
Didn't I say that above? :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2010 07:43 AM
тАО01-18-2010 07:43 AM
Re: Shell history not being written to specified history file
But would that cause the system to write history to .sh_history rather than whatever is in $HISTFILE? (A rhetorical question I guess).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2010 03:53 PM
тАО01-18-2010 03:53 PM
Re: Shell history not being written to specified history file
I'm not sure, why would the shell would check the file for validity?
Are you exporting HISTFILE at the top of ~/.profile? Does /etc/profile cause any history to be written sooner?
The documentation isn't clear when you can change/export it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2010 11:49 PM
тАО09-18-2010 11:49 PM
Re: Shell history not being written to specified history file
It works perfectly in my Itanium, 11.31 server, but "what /bin/ksh" shows a different date, "B.11.31 Oct 1 2008 01:54:10".
Might be bcause of the version
- « Previous
- Next »