openapp can't run shell script with argument

Asked by YuhsuanChen

Hi,

I write a script need to open another jar file, so I use shell script to run this jar with some argument.
The shell script will help me to login account.
ex: openApp("/home/user/run.sh username password filepath")

But I find Sikuli will not run the script, is sikuli not support this way to run shell script?

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
obiwan-92
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

no, it does not (yet ;-)

use Jython subprocess instead

Revision history for this message
Best obiwan-92 (obiwan-92) said :
#2

Hello.

Try the command :
import os
os.popen("/home/user/run.sh username password filepath")

Tell if it's work.

Regards.

Revision history for this message
YuhsuanChen (a-gangan-u) said :
#3

Thanks obiwan-92, that solved my question.