3 ms·
Please open source this if you can!
by toomuchtodo 7y ago
Please open source this if you can!
- whelming_wave 7y agoYou 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)