Cronjob with sikuli

Asked by trevonio

I wrote a script wit sikuli and I would like to run it once a day in ubuntu.

I thought a cronjob would be the easiest way to do it but I can't find the way to do it. Can I run the sikuli java jar file in a cronjob?

Question information

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

I guess the way is to pack the script into a shell script (java -jar .... -r script) and mention this in the cronjob.

Revision history for this message
Chetan (cshamdas) said :
#2

you can write a cron job something like below

!/bin/bash
echo "Running script."
cd ~/your/classpath/to/java
java -classpath .:somejar.jar path/to/your/Program

Can you help with this problem?

Provide an answer of your own, or ask trevonio for more information if necessary.

To post a message you must log in.