LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-17-2012, 11:53 AM   #1
LAPIII
Member
 
Registered: Mar 2009
Location: Virginia, US
Distribution: Ubuntu 10.10 & Debian 6.0.3,
Posts: 350

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, 12:33 PM   #2
kabamaru
Member
 
Registered: Dec 2011
Location: Greece
Distribution: Slackware
Posts: 276

Rep: Reputation: 134Reputation: 134
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, 03:02 PM   #3
LAPIII
Member
 
Registered: Mar 2009
Location: Virginia, US
Distribution: Ubuntu 10.10 & Debian 6.0.3,
Posts: 350

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

Rep: Reputation: 134Reputation: 134
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 03:25 PM.
 
Old 01-28-2012, 04: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



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 09:39 PM
[SOLVED] cannot open shared object file: No such file or directory - but the file is there! Ook Slackware 5 08-24-2011 05:13 PM
pause displaying typescript rsashok Linux - General 2 11-16-2007 12:38 PM
about typescript AmphetaminePhreak Linux - Newbie 1 08-01-2006 03:09 AM
Geting error loop QFike:getch: File not open QFile:atEnd: this file is not open badgerbox76 Linux - Newbie 6 01-07-2006 05:30 PM

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

All times are GMT -5. The time now is 04:42 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