repo.or.cz
/
python
/
dscho.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
- Got rid of newmodule.c
[python/dscho.git]
/
Demo
/
sgi
/
al
/
x.py
blob
ecc12d8198c4006e404285c141ebf42a1f2dcd48
1
# 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
4
print
'hoi!'
5
import
sys
6
sys
.
stdin
.
close
()
7
sys
.
stdout
.
close
()
8
sys
.
stderr
.
close
()
9
import
time
10
time
.
sleep
(
5
)
11
sys
.
stdout
=
open
(
'@'
,
'w'
)
12
sys
.
stdout
.
write
(
'Hello
\n
'
)