uwhpsc-2016 / homework1

Homework #1
1 stars 1 forks source link

Saving Test Script Output to File #30

Open cswiercz opened 8 years ago

cswiercz commented 8 years ago

During a lecture last week SMC decided to not allow me to scroll up in a Terminal window so we could view the output of

$ python test_homework1.py

i.e. the Homework 1 test script output. Not sure what happened there but if it happens to you a possible solution (outside of restarting SMC) is to use some fancy terminal commands.

The terminal command

$ python test_homework1.py 2> out.txt

will take the output of python test_homework1.py and write the text to a file called out.txt. You can then view the contents of out.txt using your favorite method:

Depending on how SMC behaves tomorrow I might end up using this technique.