- 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
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
04-28-2009 10:35 AM
04-28-2009 10:35 AM
Re: Shell history not being written to specified history file
Here's the output:
/bin/ksh:
$ B.11.31 Feb 27 2008 13:41:17 $
Version 11/16/88
builtin.c $Date: 2007/10/25 15:12:29 $Revision: r11.31/1 PATCH_11.31 (PHCO_37285)
test.c $Date: 2008/05/01 15:55:23 $Revision: r11.31/1 PATCH_11.31 (PHCO_38162)
$Revision: @(#) ksh88 R11.31_BL2008_0618_4 PATCH_11.31 PHCO_38162
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2009 06:16 AM
04-29-2009 06:16 AM
Re: Shell history not being written to specified history file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2009 09:18 AM
04-29-2009 09:18 AM
Re: Shell history not being written to specified history file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2009 10:54 AM
04-29-2009 10:54 AM
Re: Shell history not being written to specified history file
possibly...what's the shell listed it /etc/passwd?
2. I don't what you mean be "corrupted" file. It's not using NFS at all.
right, but a suggest was made the echo'ing the date into the file may have corrupted it.
3. Logging in via ssh using Putty.
ok..my original thought was the possibly you were logging in via XWindows and the default profile stuff wasn't being run. that doesn't appear to apply here.
A long shot: You might want to look at the PermitUserEnvironment setting is the sshd config, and see if there is an ~/.ssh/environment file. but be sure to note the warnings in the sshd_config and ssh manpages regarding their use.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2009 07:29 AM
05-01-2009 07:29 AM
Re: Shell history not being written to specified history file
I checked the sshd_config and that PermitUserEnvironment is set to "no".
I'm really at a loss on this one. I have two other servers that are somewhat identical to this one and I can HISTFILE to whatever I want and it works.
- 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
-
- 1
- 2
- Next »