← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #691987]: Problem to execute a shell command with run()

 

Question #691987 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/691987

    Status: Open => Answered

RaiMan proposed the following answer:
LOL, sorry for my stupid suggestion --- to much beer already last night
:-))

But what about:

out = open("/home/my/path/scripts/prepare_VM_data_parms.txt, "w")
out.write("1\ny\ny\ny\ny\ny\n\")
out.close()

cmd = ("sh", "-c", "/home/my/path/scripts/prepare_VM_data.sh </home/my/path/scripts/prepare_VM_data_parms.txt")
run(cmd)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.