PhilBot
  • Member for 8 years, 3 months
  • Last seen more than a month ago
Redirect script output to /dev/tty1 and also capture output to file
Accepted answer
2 votes

Thanks for the input, it did not work for Python scripts because it was buffering the output. This allows it to work with tee: python -u ./myscript.py | tee /dev/tty1 /tmp/a.txt

View answer