[request] improvement for run command
Bug #1076372 reported by
RaiMan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
In Progress
|
Medium
|
RaiMan |
Bug Description
In GUI mode the run(command) should show the console window.
In CLI mode the run(command) could optionally show the console window.
Either way, it should check the exit code and either return it or fail.
Without such improvement, it's just like submodule.call()
Changed in sikuli: | |
milestone: | x1.0 → none |
tags: | added: fit-run |
tags: |
added: fkt-run removed: fit-run |
Changed in sikuli: | |
importance: | Undecided → Wishlist |
Changed in sikuli: | |
importance: | Wishlist → High |
milestone: | none → x1.1 |
Changed in sikuli: | |
milestone: | 1.1.0 → 1.2.0 |
Changed in sikuli: | |
milestone: | 2.0.0 → 2.1.0 |
importance: | High → Medium |
To post a comment you must log in.
based on https:/ /github. com/sikuli/ sikuli/ issues/ 21
actually the run() command is implemented using java.lang. Runtime. getRuntime( ).exec( command string) and it returns the command output as a list of lines.
This is comparable to an implementation on the Jython level using os.popen() (or subprocess.popen() better).
In both cases these commands are run in a separate process and do not have a console window at all (just sysin, sysout and syserr).
Nevertheless: I have it on my list to improve it. And to optionally show the command output in a window seems to be a good idea.