943,912 Members | Top Members by Rank

Ad:
May 8th, 2008
0

Extract HISTORY from putty to windows .txt

Expand Post »
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.
Reputation Points: 256
Solved Threads: 72
Nearly a Posting Virtuoso
majestic0110 is offline Offline
1,306 posts
since Oct 2007
May 8th, 2008
1

Re: Extract HISTORY from putty to windows .txt

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.
Reputation Points: 118
Solved Threads: 30
Posting Shark
linux is offline Offline
931 posts
since Aug 2006
May 8th, 2008
0

Re: Extract HISTORY from putty to windows .txt

That simple ? lol Thanks a lot for your response, very helpful!
Reputation Points: 256
Solved Threads: 72
Nearly a Posting Virtuoso
majestic0110 is offline Offline
1,306 posts
since Oct 2007
May 9th, 2008
0

Re: Extract HISTORY from putty to windows .txt

Even better try this:

Quote ...
echo |history > history.txt
Reputation Points: 256
Solved Threads: 72
Nearly a Posting Virtuoso
majestic0110 is offline Offline
1,306 posts
since Oct 2007
May 9th, 2008
0

Re: Extract HISTORY from putty to windows .txt

Yeah, I was stating that echo something > file.txt would do that.
Reputation Points: 118
Solved Threads: 30
Posting Shark
linux is offline Offline
931 posts
since Aug 2006
May 9th, 2008
0

Re: Extract HISTORY from putty to windows .txt

oh I didnt realise you meant with the pipe!lol
Reputation Points: 256
Solved Threads: 72
Nearly a Posting Virtuoso
majestic0110 is offline Offline
1,306 posts
since Oct 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Applications and Software Forum Timeline: exection of opencv sample programs in c on fedora
Next Thread in Linux Applications and Software Forum Timeline: rtc: lost xx interrupts





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC