how to print output to log file and windows server console at the same time

Asked by ZW

Hi All

We use a scheduled task to kick off Sikuli.
How do we output the results both to a log file and the windows console at the same time when sikuli is running?
Right now, output is showing to the taskeng.exe console window.

Thanks

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

currently not possible.

to get all output to a file, you have to pipe to a file ( add > log.text on command line)

The output you produce using print could be written to a file using write.

Revision history for this message
ZW (mpc8250) said :
#2

Hi Raiman

We tried that java.exe -jar sikuli...etc > log.txt in the scheduled task GUI.
No output file produced.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

check your setup, make some general tests about using > piping(where does the file go?).
not a Sikuli problem.

Can you help with this problem?

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

To post a message you must log in.