MCPcopy Index your code
hub / github.com/ecthros/uncaptcha2 / runCommand

Function runCommand

run.py:31–34  ·  view source on GitHub ↗

Run a command and get back its output

(command)

Source from the content-addressed store, hash-verified

29r = sr.Recognizer()
30
31def runCommand(command):
32 ''' Run a command and get back its output '''
33 proc = subprocess.Popen(command, stdout=subprocess.PIPE, shell=True)
34 return proc.communicate()[0].split()[0]
35
36def waitFor(coords, color):
37 ''' Wait for a coordinate to become a certain color '''

Callers 3

waitForFunction · 0.85
downloadCaptchaFunction · 0.85
checkCaptchaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected