|
|
|
|
|
by namibj
2960 days ago
|
|
Uh, just feed it the resulting file from asciinema rec --stdin
and it will execute whatever was in there. If some programs were reading more than they actually wanted, it would have trouble, because they would likely get fed further commands/input, which would no longer go to the shell/later program.Regarding the script, it's just using jq because asciinema uses a JSON-based format, of which some data needs to be extracted.
It should be self-evident from looking at what jq is doing and what an interactive shell does different from a non-interactive one (hint: it's related to autocompletion), as well as a sample file created by the above command.
If you still don't understand, tell, and I'll try to explain better. And sorry for the delay, I wasn't expecting a timely response that asks me for something. |
|