I\'ve noticed that curl can tell whether or not I\'m redirecting its output (in which case it puts up a progress bar).
Is there a reasonable way to do this in a Python s
import sys if sys.stdout.isatty(): print "Not redirected" else: sys.stderr.write("Redirected!\n")