sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #51105
Re: [Question #679535]: How to execute a script done in pl sql in skikulix?
Question #679535 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/679535
Status: Open => Answered
RaiMan proposed the following answer:
the easiest possibility, if these condidtions are met:
- on Windows
- the script can be run by using a .cmd batch file
- the script outpouts the payload to standard out
then this will work:
info = run("cmd.exe wrapperOfPLSQLScript.cmd")
info will be a string containing lines (terminated with \n)
--- first line:
return code (a number string)
--- second line and following:
the lines output from your script
if an error occured, there will be a line
*****error*****
followed by the error output
Be aware: there might be encoding issues to be solved with the returned
string.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.