The tag has no usage guidance.

learn more… | top users | synonyms

32
votes
6answers
21k views

Removing control chars (including console codes / colours) from script output

I can use the "script" command to record an interactive session at the command line. However, this includes all control characters and colour codes. I can remove control characters (like backspace) ...
16
votes
5answers
5k views

Typescript -terminal recording into video?

We need to make some videos about working with LaTex -documents here. We have the typescript and timing -files and now we need to convert them into videos to display them in answers. Basically, the ...
8
votes
2answers
848 views

How to know if you're in a typescript?

I'm using the script command to save all the output from the terminal to a file called typescript. Or script foo to save to the file foo. Now, let's say I'm going along typing command after command ...
4
votes
1answer
44 views

Open a new terminal, monitor it and execute a script

I have a script that I want to monitor its results and write them to a log file. I run the following: gnome-terminal -x bash -c "script logfile.log; ssh user@IP" But this command execute first the ...
3
votes
2answers
1k views

Convert a typescript file to a list of commands (history)

I wanted to record a linux session so I could use it as documentation for a "how to install" guide. I found something on the internet that suggested that the script command would be good for this, and ...
3
votes
0answers
107 views

How to best track adventures of a novice administrator

I have this user that has limited sudo privileges, yet he manages to screw up from time to time. I would like to keep an eye on his adventures, so that I can reverse any damage with less digging. ...
1
vote
2answers
46 views

cd to original location when recording session with “script” command

I have script log.txt in my bash profile; that creates a new sub process and records my entire session to log.txt. When I press cmd+t to open a new terminal usually this will open one in the same ...
1
vote
3answers
73 views

add timestamps to recorded session via “script” command

In my .bash_profile I have script -a -t 0 session.log which automatically records all terminal input/output into the session.log file. I know this command comes with an optional flag to record the ...
0
votes
1answer
66 views

Understanding scriptreplay timing file

I am trying to understand the timing files produced by the script command (which are supposed to be read by scriptreplay while running typescript files). The timing file is always made of two columns, ...
0
votes
1answer
26 views

Execute script in new tab command line gnome-terminal

Hello i want to open a new terminal and execute a script immediately to it (to set a title in the new tab) and i cannot configure this. I try: gnome-terminal --tab-with-profile=$varname -x ./test.sh -...