1 from __future__
import print_function
2 import os,sys,os.path,shlex
3 from subprocess
import Popen,PIPE,STDOUT
4 from cStringIO
import StringIO
7 """runsubprocess return processid 10 proc=Popen(cmmdline,shell=shell,stdout=PIPE,stdin=PIPE,stderr=STDOUT)
11 stdout_value,stderr_value=proc.communicate()
12 print(repr(stdout_value))
17 check if a process is still running 19 return os.path.exists(os.path.join(
'/proc',
str(processid)))
21 if __name__==
'__main__':
23 pid=
runCmmd(
'cat -; echo ";to stderr" 1>&2',shell=
True)
def runCmmd(cmmdline, shell=False)
S & print(S &os, JobReport::InputFile const &f)
def processRunning(processid)