Running Sikuli scripts from command line (Linux)

Asked by open

I'm on Linux Ubuntu and I want to run a Sikuli script using crontab.

How do I run a specific Sikuli script from the command line?

$ /path/to/Sikuli-IDE/sikuli-ide.sh /path/to/my-sikuli-script
Is a syntax like this already supported?

COMMAND LINE USAGE IS DOCUMENTED AT:
http://sikuli.org/docx/faq/command-line.html

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Tsung-Hsiang Chang
Solved:
Last query:
Last reply:
Revision history for this message
Tsung-Hsiang Chang (vgod) said :
#1

We have release a command line tool for running a sikuli script without the IDE. The cool can be downloaded at http://groups.csail.mit.edu/uid/sikuli/download.shtml.

Sample usage:

For Windows users, type "PATH-TO-SIKULI/sikuli-script xxxx.sikuli" in the command prompt(cmd.exe).
For Linux and Mac users, type "PATH-TO-SIKULI/sikuli-script.sh xxxx.sikuli" in any terminal programs.

Revision history for this message
Best Tsung-Hsiang Chang (vgod) said :
#2

We have release a command line tool for running a sikuli script without the IDE. The cool can be downloaded at http://groups.csail.mit.edu/uid/sikuli/download.shtml.

Sample usage:

For Windows users, type "PATH-TO-SIKULI/sikuli-script xxxx.sikuli" in the command prompt(cmd.exe).
For Linux and Mac users, type "PATH-TO-SIKULI/sikuli-script.sh xxxx.sikuli" in any terminal programs.
FAQ #928: “Running Sikuli scripts from command line”.

Revision history for this message
open (opensource) said :
#3

Thanks Tsung-Hsiang Chang, that solved my question.

Revision history for this message
Libo Cao (libocao) said :
#4

The command line tool does not exist now after 0.9.7

Revision history for this message
Libo Cao (libocao) said :
#5

scratch above, now the doc is complete, and it works on XP

Revision history for this message
alcia burke (alcianicole) said :
#6

Hi, I am trying to run the command line on Windows XP but getting the following error:
C:\Documents and Settings\sikuli\Sikuli-IDE>Sikuli-IDE.bat -r all_u_tab.sikuli --args -s

"Redirect stdout/stderr to console."

What am i Doing wrong?

Revision history for this message
alcia burke (alcianicole) said :
#7

Hi, I am trying to run the command line on Windows XP but getting the following error:
C:\Documents and Settings\sikuli\Sikuli-IDE>Sikuli-IDE.bat -r all_u_tab.sikuli --args -s

"Redirect stdout/stderr to console."

What am i Doing wrong?