<s> from agamotto . utils import execute <EOL> def running ( processname ) : <EOL> """<STR_LIT>""" <EOL> try : <EOL> return int ( execute ( "<STR_LIT>" % ( processname ) ) ) > <NUM_LIT:0> <EOL> except Exception , e : <EOL> return False <EOL> def is_running ( processname ) : <EOL> """<STR_LIT>""" <EOL> return running ( processname ) <EOL> def stdoutContains ( command , required ) : <EOL> """<STR_LIT>""" <EOL> try : <EOL> return execute ( command ) . find ( required ) >= <NUM_LIT:0> <EOL> except : <EOL> return False </s>
