Skip to content

Instantly share code, notes, and snippets.

@ilovetogetspamed
Last active December 14, 2016 17:53
Show Gist options
  • Save ilovetogetspamed/44d2793669a9d6265739ef452ff75e1e to your computer and use it in GitHub Desktop.
Save ilovetogetspamed/44d2793669a9d6265739ef452ff75e1e to your computer and use it in GitHub Desktop.
STDERR Redirection
bash-3.2$ python main.py 2>&1 1>/tmp/kivy_last_log.txt
[INFO ] [Logger ] Record log in /Users/cfo64nc/.kivy/logs/kivy_16-12-14_56.txt
[INFO ] [Kivy ] v1.9.1
[INFO ] [Python ] v2.7.10 (default, Oct 23 2015, 19:19:21)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)]
Traceback (most recent call last):
File "main.py", line 24, in <module>
install_twisted_reactor()
File "/Library/Python/2.7/site-packages/kivy/support.py", line 164, in install_twisted_reactor
import twisted
ImportError: No module named twisted
bash-3.2$ cat /tmp/kivy_last_log.txt
bash-3.2$
As you can see, noting was redirected to kivy_last_log.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment