LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   issue cmd: script -f filename.log [Q: how do I suppress the ctrl key when I view ] (https://www.linuxquestions.org/questions/linux-newbie-8/issue-cmd-script-f-filename-log-%5Bq-how-do-i-suppress-the-ctrl-key-when-i-view-%5D-936946/)

NuUser 03-28-2012 03:39 PM

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?

catkin 03-28-2012 10:20 PM

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?

NuUser 03-29-2012 11:17 AM

Quote:

Originally Posted by catkin (Post 4639247)
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?

catkin 03-29-2012 12:02 PM

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.


All times are GMT -5. The time now is 09:19 AM.