I want to log everything that appears on the screen. It's supposed to be something like a history file: I've made something like that but it doesn't work. I can't see what script is doing.
exec > output.txt 2>&1
echo "Hello"
echo "Alice"
echo "put something"
read input
echo $input
Thank you for any help.
script &> output.log
? Yourexec
redirect makes no sense if that's exactly what you're running. Readman exec
for more details.