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

  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')
  13.