forked from p15670423/monkey
use quotation marks on linux as well
This commit is contained in:
parent
002394f887
commit
bb27444c35
|
@ -36,11 +36,9 @@ def run_local_monkey():
|
|||
|
||||
# run the monkey
|
||||
try:
|
||||
args = ['"%s" m0nk3y -s %s:%s' % (target_path, local_ip_addresses()[0], ISLAND_PORT)]
|
||||
if sys.platform == "win32":
|
||||
args = ['"%s" m0nk3y -s %s:%s' % (target_path, local_ip_addresses()[0], ISLAND_PORT)]
|
||||
args = "".join(args)
|
||||
else:
|
||||
args = ['%s m0nk3y -s %s:%s' % (target_path, local_ip_addresses()[0], ISLAND_PORT)]
|
||||
pid = subprocess.Popen(args, shell=True).pid
|
||||
except Exception as exc:
|
||||
return False, "popen failed: %s" % exc
|
||||
|
|
Loading…
Reference in New Issue