LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 03: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, 10:20 PM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
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, 11:17 AM   #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, 12:02 PM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
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



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 08: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 01:45 AM
Is there a cmd that will kill all processes that are accessing a specific filename bret Linux - General 2 12-17-2009 10:30 AM
CGI script to view log files twantrd Programming 4 03-02-2007 10:19 AM
CAPS lock key is now my left-CTRL key?! andrew_cz General 2 05-03-2006 07:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:07 PM.

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
Open Source Consulting | Domain Registration