User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the *nix Software section within the Tech Talk category of DaniWeb, a massive community of 375,230 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,220 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our *nix Software advertiser: Lunarpages Linux Web Hosting
Views: 580 | Replies: 5 | Solved
Reply
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,122
Reputation: majestic0110 is on a distinguished road 
Rep Power: 3
Solved Threads: 47
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Veteran Poster

Extract HISTORY from putty to windows .txt

  #1  
May 8th, 2008
Hi all hope you are well.
I am interested in a quick method (besides cut 'n' paste) of extracting my command history from a putty session (Linux version Red Hat Enterprise Linux ES release 3 (Taroon Update 9)) to a windows text file. Any ideas on that? Thanks for your time.
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2006
Location: me::house
Posts: 903
Reputation: linux is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 22
linux's Avatar
linux linux is offline Offline
Posting Shark

Re: Extract HISTORY from putty to windows .txt

  #2  
May 8th, 2008
Well, wherever your history log is stored, just use echo "whateverthehistoryis" > "XXX.txt"
Or find the history log and copy and paste the file into a new directory.
Toshiba M1151.49 GB DDR-2 RAM1.6 GHz Centrino Duo80GB HDDWindows XP Media Center Edition
Reply With Quote  
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,122
Reputation: majestic0110 is on a distinguished road 
Rep Power: 3
Solved Threads: 47
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Veteran Poster

Re: Extract HISTORY from putty to windows .txt

  #3  
May 8th, 2008
That simple ? lol Thanks a lot for your response, very helpful!
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
Reply With Quote  
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,122
Reputation: majestic0110 is on a distinguished road 
Rep Power: 3
Solved Threads: 47
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Veteran Poster

Re: Extract HISTORY from putty to windows .txt

  #4  
May 9th, 2008
Even better try this:

echo |history > history.txt
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
Reply With Quote  
Join Date: Aug 2006
Location: me::house
Posts: 903
Reputation: linux is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 22
linux's Avatar
linux linux is offline Offline
Posting Shark

Re: Extract HISTORY from putty to windows .txt

  #5  
May 9th, 2008
Yeah, I was stating that echo something > file.txt would do that.
Toshiba M1151.49 GB DDR-2 RAM1.6 GHz Centrino Duo80GB HDDWindows XP Media Center Edition
Reply With Quote  
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,122
Reputation: majestic0110 is on a distinguished road 
Rep Power: 3
Solved Threads: 47
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Veteran Poster

Re: Extract HISTORY from putty to windows .txt

  #6  
May 9th, 2008
oh I didnt realise you meant with the pipe!lol
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb *nix Software Marketplace
Thread Tools Display Modes

Other Threads in the *nix Software Forum

All times are GMT -4. The time now is 4:02 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC