← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #683826]: SikuliX on Linux Mint launch scrcpy from SikuliX script

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
App.run(<command-line-string>)

should work.

the java docs:
 /**
   * the given text is parsed into a String[] suitable for issuing a Runtime.getRuntime().exec(args). quoting is
   * preserved/obeyed. the first item must be an executable valid for the running system.<br>
   * After completion, the following information is available: <br>
   * App.lastRunResult: a string containing the complete result according to the docs of the run() command<br>
   * App.lastRunStdout: a string containing only the output lines that went to stdout<br>
   * App.lastRunStderr: a string containing only the output lines that went to stderr<br>
   * App.lastRunReturnCode: the value, that is returnd as returncode
   *
   * @param cmd the command to run starting with an executable item
   * @return the final returncode of the command execution
   */

It might be necessary, to give the script with its absolute pathname and
as executable you might need to use the shell executable (bash I guess
in this case).

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