31def cleanup(num, frame):
32 os.kill(procrb2mrb.pid, signal.SIGINT)
33 os.kill(procmrb2rb.pid, signal.SIGINT)
34 for i
in range(0, ncol):
35 os.kill(procbasf2[i].pid, signal.SIGKILL)
36 subprocess.call([
"removerb", inrblist[i]])
37 subprocess.call([
"removerb", outrblist[i]])
45signal.signal(signal.SIGINT, cleanup)
46signal.signal(signal.SIGTERM, cleanup)
61col_script =
"collector.py"
68for i
in range(0, ncol):
69 inrblist.append(inputrb + str(i + 1))
70 outrblist.append(outputrb + str(i + 1))
76 subprocess.call(
"createrb " + x, shell=
'True')
78 subprocess.call(
"createrb " + x, shell=
'True')
81cmdrb2mrb =
"rb2mrb " + inputrb +
" "
83for i
in range(0, ncol):
84 cmdrb2mrb += (inrblist[i] +
" ")
85 cmdmrb2rb += (outrblist[i] +
" ")
90procrb2mrb = subprocess.Popen(cmdrb2mrb, shell=
'True')
95procmrb2rb = subprocess.Popen(cmdmrb2rb, shell=
'True')
100for i
in range(0, ncol):
101 basf2cmd =
"basf2 --no-stats " + col_script +
" " + inrblist[i] +
" " + outrblist[i]
103 procbasf2.append(subprocess.Popen(basf2cmd, shell=
'True'))