blob: ecc12d8198c4006e404285c141ebf42a1f2dcd48 [file] [log] [blame]
Guido van Rossum50692d61991-09-15 21:05:15 +00001# Demonstrate that rsh exits when the remote end closes std{in,out,err}.
2# rsh voorn exec /ufs/guido/bin/sgi/python /ufs/guido/mm/demo/audio/x.py
3
4print 'hoi!'
5import sys
6sys.stdin.close()
7sys.stdout.close()
8sys.stderr.close()
9import time
10time.sleep(5)
11sys.stdout = open('@', 'w')
12sys.stdout.write('Hello\n')