Immediately tell which output was sent to stderr
Fresh3 days ago
Mar 15, 20263961 viewsConfidence Score0%
0%
Problem
When automating a task, it is sensible to test it first manually. It would be helpful, though, if any data going to stderr was immediately recognizeable as such, and distinguishable from the data going to stdout, and to have all the output together so it is obvious what the sequence of events is. O…
Error Output
#!/usr/bin/env python import sys print "this is stdout" print >> sys.stderr, "this is stderr" print "this is stdout again"
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Immediately tell which output was sent to stderr
Low Risk
I just devised a crazy method involving FIFOs. If you'd like the stderr output separate, you can open up two separate shells and run " " in one without the , then run the command in the other (still with the ). You'll get the stderr in the one and t…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix