In [1]:
import sys
print('Arguments', sys.argv)
In [2]:
import sys
print('STATUS: Reading from stdin', file=sys.stderr)
data = sys.stdin.read()
print('STATUS: Writing data to stdout', file=sys.stderr)
sys.stdout.write(data)
sys.stdout.flush()
print('STATUS: Done', file=sys.stderr)