← Back to team overview

sikuli-driver team mailing list archive

[Question #234387]: FindFailed when run sikuli script remotely by SSH

 

New question #234387 on Sikuli:
https://answers.launchpad.net/sikuli/+question/234387

my steps

1.  write a sikuli script on server1
findAll(Pattern("1377079767665.png").similar(0.20));
doubleClick(Pattern("1377079777030.png").similar(0.16));

2. run the script by .bat file on server1, as below, it's ok to run the script
cd C:\Sikuli\IDE\Sikuli-IDE-1.0.0-Win32
sikuli-script.cmd -j6 -r test1.sikuli > c:\tt.txt

3. server2 (windows) connect to server1 by SSH and run the above .bat file via command line on server2, got error below

C:\>cd C:\Sikuli\IDE\Sikuli-IDE-1.0.0-Win32
C:\Sikuli\IDE\Sikuli-IDE-1.0.0-Win32>sikuli-script.cmd -j6 -r test1.sikuli  1>c:
\tt.txt
java version "1.6.0_38"
Java(TM) SE Runtime Environment (build 1.6.0_38-b05)
Java HotSpot(TM) Client VM (build 20.13-b02, mixed mode, sharing)

Traceback (most recent call last):
  File "C:\Sikuli\IDE\Sikuli-IDE-1.0.0-Win32\test1.sikuli\test1.py", line 1, in
<module>
    findAll(Pattern("1377079767665.png").similar(0.20));
  Line 2, in file C:\Sikuli\IDE\Sikuli-IDE-1.0.0-Win32\test1.sikuli\test1.py

        at org.sikuli.script.Region.handleFindFailed(Unknown Source)
        at org.sikuli.script.Region.findAll(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)

org.sikuli.script.FindFailed: FindFailed: can not find P(1377079767665.png) S: 0
.2 on the screen.
  Line 2, in file C:\Sikuli\IDE\Sikuli-IDE-1.0.0-Win32\test1.sikuli\test1.py


4.  back to server1 (windows) and ran the  .bat file using "at" command, as below, got same error
at hour:min test.bat


Can you please take a look? Thanks!

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.