-
Notifications
You must be signed in to change notification settings - Fork 0
/
simruns
executable file
·43 lines (34 loc) · 1.01 KB
/
simruns
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env python
import shlex
from subprocess import Popen, PIPE
call = r"./grnsim -m ss pws/nfkb-super.pw -e "
print(call)
print("********************")
def exp(params):
if params[0]=='*':
return
# call(shlex.split(call+'"'+params+'"'))
p = Popen(shlex.split(call+'"'+params+'"'), stdout=PIPE, stderr=PIPE)
p.params = params
return p
runs = [ "tnf=1 lps=0 ltbr=0",
"tnf=1 lps=0 ltbr=0 a20=0",
"tnf=1 lps=0 ltbr=0 ikkb=0",
"tnf=1 lps=0 ltbr=0 ikkb=0 tnfr=0",
"tnf=1 lps=0 ltbr=0 rip=0",
"tnf=1 lps=0 ltbr=0 p65=0",
"*******************************",
"tnf=0 lps=1 ltbr=0",
"tnf=0 lps=1 ltbr=0 nemo=0",
"tnf=0 lps=1 ltbr=0 ikkb=0",
"tnf=0 lps=1 ltbr=0 ikka=0"]
res = []
for run in runs:
temp = exp(run)
if type(temp) == Popen:
res.append(temp)
for r in res:
stdout,stderr = r.communicate()
print r.params
#print stderr
print stdout,