Search:
Login
Preferences
Help/Guide
About Trac
Wiki
Timeline
Roadmap
View Tickets
Search
Context Navigation
Back to Ticket #6933
Ticket #6933
: process.py
File process.py,
231 bytes
(added by Andrei Savici,
7 years
ago)
Line
1
import
subprocess
2
3
f
=
open
(
"test.log"
,
"w"
)
4
fe
=
open
(
"test.err"
,
"w"
)
5
proc
=
subprocess
.
Popen
(
'python reduction.py '
,
stdin
=
subprocess
.
PIPE
,
stdout
=
f
,
stderr
=
fe
,
universal_newlines
=
True
,
shell
=
True
)
6
proc
.
communicate
()
7
f
.
close
()
8
fe
.
close
()
Download in other formats:
Original Format