MCPcopy Index your code
hub / github.com/cherrypy/cherrypy / read_process

Function read_process

cherrypy/test/modfastcgi.py:46–56  ·  view source on GitHub ↗
(cmd, args='')

Source from the content-addressed store, hash-verified

44
45
46def read_process(cmd, args=''):
47 pipein, pipeout = os.popen4('%s %s' % (cmd, args))
48 try:
49 firstline = pipeout.readline()
50 if (re.search(r'(not recognized|No such file|not found)', firstline,
51 re.IGNORECASE)):
52 raise IOError('%s must be on your system path.' % cmd)
53 output = firstline + pipeout.read()
54 finally:
55 pipeout.close()
56 return output
57
58
59APACHE_PATH = 'apache2ctl'

Callers 2

start_apacheMethod · 0.70
stopMethod · 0.70

Calls 3

readlineMethod · 0.45
readMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…