#scriptreplay
Explore tagged Tumblr posts
Photo

I just recorded a whole session of coding in #terminal with #asciinema that only was 14MB in total. How cool is that? It was an idea of mine use do exactly what asciinema is today, but I think they've done a great job and if I ever wanted to expand their idea (because I already have so many ideas that I can add to the project), I would fork asciinema or at least use their code in my advantage. I also like the #script and #scriptreplay commands which I'm sure that these are the source of the asciinema's source of idea. I also looked at the asciinema's source code and I think I'll be able to add some changes to it as soon as the time is right. I wish I had the time to just dive in and do what I'm thinking now. But unfortunately this idea has to go into the check list of mine till I see that it's the time to work on it. Oh man, I'm already excited about project. But I have to wait. I hate waiting, but I'm getting good at it. I also may share my practice someday. And also I'll be recording my rest of practices from now on as well. So someday, you'll get access to exactly what I typed, when I typed and how I typed it in these practices. Do you want it now? . . #code #coding #dev #developer #development #coder #webdev #webdesign #ascii #linux #terminal #practice #record #vim #tmux #tmuxinator #gtk #gtkmm #cplusplus #cpp #coderlife #programmerlife #programminglife #devlife https://www.instagram.com/p/BswQd_uBK8D/?utm_source=ig_tumblr_share&igshid=1c9x864x2utpd
#terminal#asciinema#script#scriptreplay#code#coding#dev#developer#development#coder#webdev#webdesign#ascii#linux#practice#record#vim#tmux#tmuxinator#gtk#gtkmm#cplusplus#cpp#coderlife#programmerlife#programminglife#devlife
6 notes
·
View notes
Text
Terminal session capture and playback in GNU/Linux
The old standby of script turns out to be very useful when you record timing information and replay it with scriptreplay. I have seen some answers on StackOverflow that appear to be unaware of this, and advocate stripping out characters via PERL. e.g. https://unix.stackexchange.com/questions/14684/removing-control-chars-including-console-codes-colours-from-script-output?rq=1
Capture
script -t session1.time -a session1.log
Replay
scriptreplay -t session1.time -s session1.log
The replay works for fairly complicated textmode applications such as vim (in which color syntax highlight was preseverd) or htop. Both script and scriptreplay are part of linux-utils since 2011.
0 notes
Text
Comando script no Linux (gravação de comandos) [Guia Básico]

As ferramentas script e scriptreplay podem ser utilizadas para criar um script de todos os comandos digitados no shell, de forma que podem ser impressos, ou tocados como se fosse um "replay" no próprio shell, mantendo sua ordem e cronologia. Para criar um script da sessão do shell, pode-se usar o comando script: $ script arquivo.log Tudo que for digitado e impresso na tela será gravado no arquivo arquivo.log, até que o comando "exit" seja executado. O arquivo.log terá o formato typescript que pode ser impresso. Mas estas ferramentas ficam incríveis com a opção "--timing", que cria um arquivo de tempo, possibilitando "tocar" o script como um replay: $ script --timing=tempo.txt arquivo.log Depois de digitar todos os comandos, e sair do script com "exit", é possível tocar o que foi gravado com scriptreplay. Desta forma, o comando scriptreplay pode ser usado para mostrar na tela tudo que foi digitado, na mesma velocidade, como se fosse um "filme": $ scriptreplay -t time.txt script.log Estes dois comandos podem ser extremamente úteis para documentar um processo de instalação de software, correção de um problema, para fins de treinamento, etc. Aprenda muito mais sobre Linux em nosso curso online. Você pode efetuar a matrícula aqui. Se você já tem uma conta, ou quer criar uma, basta entrar ou criar seu usuário aqui. Gostou? Compartilhe Read the full article
0 notes