-1

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.

terdon
  • 242,166

1 Answers1

0

I haven't found any useful information. I made something what is very ugly for me:

'''  echo "Hello"|&tee -a log.txt
     echo "Alice"|&tee -a log.txt
     echo "put something"|&tee -a log.txt
     read input
     echo &input|&tee -a log.txt

'''

Blockquote

Thank you for your help.