write-to-stdout-and-stderr.py 153 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 #!/usr/bin/env python import sys sys.stdout.write("a line on stdout\n") sys.stdout.flush() sys.stderr.write("a line on stderr\n") sys.stderr.flush()