3 ms·
You might be able to create something similar by combining expect with asciinema, like $ expect_command=' log_user 0 spawn bash interact timeout 1 retu
by whelming_wave 7y ago
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)