[code.view]

[top] / python / PyMOTW / subprocess / subprocess_popen_write.py

     #!/usr/bin/env python
     # encoding: utf-8
     #
     # Copyright (c) 2008 Doug Hellmann All rights reserved.
     #
     """
     """
     
     __version__ = "$Id$"
     #end_pymotw_header
     
     import subprocess
     
     print '\nwrite:'
     proc = subprocess.Popen(['cat', '-'],
                             stdin=subprocess.PIPE,
                             )
     proc.communicate('\tstdin: to stdin\n')
     

[top] / python / PyMOTW / subprocess / subprocess_popen_write.py

contact | logmethods.com