LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 01-17-2012, 12:53 PM   #1
Advice Pro
Member
 
Registered: Mar 2009
Location: Virginia, US
Distribution: Ubuntu 10.10 & Debian 6.0.3,
Posts: 343

Rep: Reputation: 7
How do I open a typescript file?


Code:
script -a
&
Code:
script filename
will make a typescript file of a terminal session, I just don't know house to open the file!
 
Old 01-17-2012, 01:33 PM   #2
kabamaru
Member
 
Registered: Dec 2011
Location: Greece
Distribution: Slackware
Posts: 276

Rep: Reputation: 133Reputation: 133
Hi there

You can view it with cat, less, more, most, vim, emacs, whichever you like. If you want to edit it, run fromdos on the file first to get rid off ^M at the end of the lines.
 
Old 01-17-2012, 04:02 PM   #3
Advice Pro
Member
 
Registered: Mar 2009
Location: Virginia, US
Distribution: Ubuntu 10.10 & Debian 6.0.3,
Posts: 343

Original Poster
Rep: Reputation: 7
I used Gedit and the formatting was messed up a bit, why is this?
 
Old 01-17-2012, 04:16 PM   #4
kabamaru
Member
 
Registered: Dec 2011
Location: Greece
Distribution: Slackware
Posts: 276

Rep: Reputation: 133Reputation: 133
Well it may have to do with what programs you used during your session's recording. For instance some text editor or any program that uses your monitor in a certain way like the vim editor or emacs (for vim I know by experience). They can produce pretty messed up stuff inside the typescript (weird meta characters, formatting issues etc.).

Last edited by kabamaru; 01-17-2012 at 04:25 PM.
 
Old 01-28-2012, 05:32 PM   #5
gr4nt
LQ Newbie
 
Registered: Feb 2009
Posts: 14

Rep: Reputation: 0
Adding to the above... script can be used to record both the console output, and its timing too. And scriptreplay is used to play it back, at the same speed, or faster if you wish.

This is my typical usage of script/scriptreplay, for when I do an upgrade...
Code:
datex="$(date +'%Y-%m-%d')"
script -f -t $datex.log 2>$datex.timing

    aptitude full-upgrade 
    exit 

# scriptreplay $datex.timing $datex.log
 
  


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
open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied gabsik Linux - Server 6 08-30-2012 10:39 PM
[SOLVED] cannot open shared object file: No such file or directory - but the file is there! Ook Slackware 5 08-24-2011 06:13 PM
pause displaying typescript rsashok Linux - General 2 11-16-2007 01:38 PM
about typescript AmphetaminePhreak Linux - Newbie 1 08-01-2006 04:09 AM
Geting error loop QFike:getch: File not open QFile:atEnd: this file is not open badgerbox76 Linux - Newbie 6 01-07-2006 06:30 PM


All times are GMT -5. The time now is 10:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration