- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- recalling old commands
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
08-28-2010 02:48 AM
08-28-2010 02:48 AM
recalling old commands
Is there any way to recall old commands from other file??
Default when press esc+k old commands will be repeated by reading HISTFILE (file content)variable.
I want to get old command repeat without taking help of HISTFILE.
Chandra
- Tags:
- history
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2010 05:28 AM
08-28-2010 05:28 AM
Re: recalling old commands
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2010 05:31 AM
08-28-2010 05:31 AM
Re: recalling old commands
You might try (temporarily) setting 'HISTFILE' to the filename you want to extract. This would at least assume that the alternate file had the same format as the normal history file. I have never tried this.
> I want to get old command repeat without taking help of HISTFILE
What problem are you attempting to solve?
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2010 08:09 PM
08-28-2010 08:09 PM
Re: recalling old commands
if you have already setup vi in .profile then "Default when press esc+k " you will see the old commands,
You can check:
# ksh -o vi
Esc k k k k ..... so on.
- To keep a record of the old file, you can implement HISTFILE with data and timestamp, by putting the code in users .profile
Also checkout few good links:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=722093
http://forums11.itrc.hp.com/service/forums/questionanswer.do?&threadId=901609
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2010 03:22 PM
08-29-2010 03:22 PM
Re: recalling old commands
Nothing other than the obvious. You cut&paste commands from the other file.
Or you can add "echo" before each command, execute that file is a script, then you can get them from the $HISTFILE and remove the "echo".