summaryrefslogtreecommitdiffstats
path: root/Demo/sgi/al/x.py
blob: ecc12d8198c4006e404285c141ebf42a1f2dcd48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# Demonstrate that rsh exits when the remote end closes std{in,out,err}.
# rsh voorn exec /ufs/guido/bin/sgi/python /ufs/guido/mm/demo/audio/x.py

print 'hoi!'
import sys
sys.stdin.close()
sys.stdout.close()
sys.stderr.close()
import time
time.sleep(5)
sys.stdout = open('@', 'w')
sys.stdout.write('Hello\n')