home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
pyos2bin.zip
/
Demo
/
sgi
/
al
/
x.py
< prev
Wrap
Text File
|
1991-09-15
|
309b
|
13 lines
# 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')