News for hackers. Stuff that matters.
Re:Asciinema – Record and share terminal sessions by whelming_wave on Tuesday December 10, 2019 @03:04PM (#21756287)
You might be able to create something similar by combining expect with asciinema, like

  $ expect_command='
  log_user 0
  spawn bash
  interact timeout 1 return
  send "ps aux | rg asciinema\n"
  interact timeout 3 return
  exit
  '
  $ asciinema rec somefile -c 'expect -c '\'"$expect_command"\'
using interact timeout as a sort of checkpoint to show output, though if you want to send single quotes you'll have to make sure they get escaped in the inner command (or just have the script in a file for expect to read)

There are no comments on this comment yet.