Timeline for Redirect script output to /dev/tty1 and also capture output to file
Current License: CC BY-SA 3.0
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 4, 2015 at 0:17 | review | First posts | |||
| Apr 4, 2015 at 0:32 | |||||
| Mar 20, 2015 at 19:21 | vote | accept | PhilBot | ||
| Mar 18, 2015 at 14:14 | comment | added | YoMismo | Have you tried redirecting the standard output? .../test_wrapper.py 1>/dev/tty1 1>/path/to/file | |
| Mar 18, 2015 at 13:33 | vote | accept | PhilBot | ||
| Mar 18, 2015 at 13:33 | |||||
| Mar 18, 2015 at 13:33 | answer | added | PhilBot | timeline score: 3 | |
| Mar 17, 2015 at 20:26 | comment | added | mikeserv | Ok - so where is your output going then? Are you not writing to stdout? Do you open() a descriptor in your script and write to it? tee will only tee its stdin. If you can figure out where you are writing then you can dup it. What is up with all of the sudo nice stuff? You can just tail /dev/vcs1 if you must, but you're doing some weird stuff. Can you drop all of the sudo stuff and still print? | |
| Mar 17, 2015 at 20:10 | history | edited | PhilBot | CC BY-SA 3.0 | added 654 characters in body |
| Mar 17, 2015 at 18:23 | answer | added | Robert Jacobs | timeline score: 5 | |
| Mar 17, 2015 at 17:08 | history | edited | Anthon | CC BY-SA 3.0 | deleted 7 characters in body |
| Mar 17, 2015 at 17:07 | comment | added | PhilBot | Nope :( , this doesn't work either: /home/pi/python_test_scripts_linux/test_wrapper.py | tee /tmp/capture.txt > /dev/tty1 | |
| Mar 17, 2015 at 17:00 | comment | added | dhag | Weird. Does tee /tmp/capture.txt >/dev/tty1 work? | |
| Mar 17, 2015 at 16:54 | history | asked | PhilBot | CC BY-SA 3.0 |