Today I learnt that you can simulate a command being run in a TTY with `script`, e.g. $ script --return --quiet --command "ls" Unfortunately it generates output files called "typescript", which is a little confusing!