- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Shell history not being written to specified h...
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
тАО04-24-2009 01:24 PM
тАО04-24-2009 01:24 PM
Re: Shell history not being written to specified history file
I believe it's running .profile since the variables I defined there are being assigned.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2009 01:30 PM
тАО04-24-2009 01:30 PM
Re: Shell history not being written to specified history file
Very near the top of .profile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2009 09:49 AM
тАО04-27-2009 09:49 AM
Re: Shell history not being written to specified history file
do once a
touch $HISTFILE
and re-login.
Then check for updates of this file.
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2009 10:44 AM
тАО04-27-2009 10:44 AM
Re: Shell history not being written to specified history file
I just tried that with the same results. Still just getting the date that I logged in.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-27-2009 07:14 PM
тАО04-27-2009 07:14 PM
Re: Shell history not being written to specified history file
Throw everything in your .profile away.
Just have:
export HISTFILE=$HOME/.${LOGNAME}_history
export HISTFILE=500
date >> $HISTFILE
See if this works.
Ah, you absolutely can't do this:
date >> $HISTFILE
The shell history file is a binary file and you can't fiddle with it.
And I don't really see how to get a command with a date in the history file, unless you type it in.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2009 07:41 AM
тАО04-28-2009 07:41 AM
Re: Shell history not being written to specified history file
I've tried that and it didn't work either. It wrote nothing to the $HISTFILE that I defined. If I do an echo $HISTFILE, it shows that valus that I defined.
Just keeps writing to the .sh_history file. Is there somewhere else that I need to define the history file that I want to user?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2009 08:07 AM
тАО04-28-2009 08:07 AM
Re: Shell history not being written to specified history file
No, this works fine for ksh. What shell are you using and are you talking about root?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2009 08:11 AM
тАО04-28-2009 08:11 AM
Re: Shell history not being written to specified history file
I just created the same test user on a different server and it worked great. So, no I'm wondering if something is set up on this server that's stopping it from working. There must be some setting that's preventing it from working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2009 08:20 AM
тАО04-28-2009 08:20 AM
Re: Shell history not being written to specified history file
Have you removed the corrupted history file?
Is $HOME over NFS?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2009 08:25 AM
тАО04-28-2009 08:25 AM
Re: Shell history not being written to specified history file
If I login and then type ksh, then it starts logging to the correct history file. So, it appears that my ksh shell is not being invoked on login?
Any ideas?