LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-28-2012, 04:39 PM   #1
NuUser
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Rep: Reputation: Disabled
issue cmd: script -f filename.log [Q: how do I suppress the ctrl key when I view ]


I issue script -f filename.log, then I do some cmd lines, after that I exit. For viewing, if I do more filename.log. It looks OK. But if I use vi or other notepad to view, I see the ctrl key. Is there a way to suppress the ctrl key stroke at the time I issue script -f ... or when I view the file?
 
Old 03-28-2012, 11:20 PM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
I'm not clear where the "ctrl key" or "ctrl key stroke" is coming from. Do you mean you set the script running and interrupt it with Ctrl+C?

How is the script writing to filename.log?
 
Old 03-29-2012, 12:17 PM   #3
NuUser
LQ Newbie
 
Registered: Mar 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by catkin View Post
I'm not clear where the "ctrl key" or "ctrl key stroke" is coming from. Do you mean you set the script running and interrupt it with Ctrl+C?

How is the script writing to filename.log?
I let the script run. Then I issue cmd at cmd line. The script supposed to capture everything I type. Once I am done I enter ctrl D. Now that I got the logfile, I open and view it, it had captured all the backspace, EOL ...what can I do to get rid those keys?
 
Old 03-29-2012, 01:02 PM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Sorry -- I mistakenly took script -f filename.log to mean script was some script of your own, not the script command.

The question has been asked several times before (this search has some but it's not easy to search for) without getting any complete solution but filtering the log with col -b is reportedly a good start.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue sg_modes cmd at cmd line, want to see the cmd in binary form NuUser Linux - Newbie 1 03-28-2012 09:08 AM
convert LAN IP address to Host Name when I give cmd tail -f /var/log/squid/access.log rs15 Linux - Networking 6 01-22-2012 02:45 AM
Is there a cmd that will kill all processes that are accessing a specific filename bret Linux - General 2 12-17-2009 11:30 AM
CGI script to view log files twantrd Programming 4 03-02-2007 11:19 AM
CAPS lock key is now my left-CTRL key?! andrew_cz General 2 05-03-2006 08:32 AM


All times are GMT -5. The time now is 10:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration