Univention Bugzilla – Attachment 2230 Details for
Bug 16454
00_ucs_temporary_installation.list wird im postup.sh entfernt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Reihenfolge von subprocess.communicate in Python
16454_pipe.py (text/plain), 427 bytes, created by
Philipp Hahn
on 2010-01-19 10:40:27 CET
(
hide
)
Description:
Reihenfolge von subprocess.communicate in Python
Filename:
MIME Type:
Creator:
Philipp Hahn
Created:
2010-01-19 10:40:27 CET
Size:
427 bytes
patch
obsolete
>#!/usr/bin/python2.4 >import subprocess > >a = subprocess.Popen(('dd','if=/dev/zero','bs=1M','count=1k'), stdout=subprocess.PIPE) >b = subprocess.Popen(('dd','of=/dev/null'), stdin=a.stdout) > >r = a.communicate() >if r == None: > print "a: None" >else: > for s in r: > print "a: %s" % (s != None) >print a.returncode > >r = b.communicate() >if r == None: > print "b: None" >else: > for s in r: > print "b: %s" % (s != None) >print b.returncode
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 16454
:
2183
| 2230