summaryrefslogtreecommitdiffstats
path: root/Demo/sgi/al/x.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/sgi/al/x.py')
-rwxr-xr-xDemo/sgi/al/x.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/Demo/sgi/al/x.py b/Demo/sgi/al/x.py
new file mode 100755
index 0000000..ecc12d8
--- /dev/null
+++ b/Demo/sgi/al/x.py
@@ -0,0 +1,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')