How to send anything to stdout using CLI

Asked by Adam K

I run my script using CLI and it works. I have to parse output of my script (e. g. result of: print "Hello World!" in script). I use -c switch to no avail. My script is completely quiet. I 've tried Debug.User, but without effect in console, either. Is there any way to see output of my script?
br

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Adam K
Solved:
Last query:
Last reply:
Revision history for this message
masuo (masuo-ohara) said :
#1

Can you show your command line Interface codes when you use to run script?
And can explain your environment(SikuliX version, OS, Java)?
If there is little information, you can not expect useful comments.

Revision history for this message
Adam K (kradam) said :
#2

Hi Masuo!
Do you think the problem described isn't common?

My stdout is quiet regardless of params combination. E. g.:

sikulix-2.0.1.jar -c -r first.sikuli
sikulix-2.0.1.jar -r first.sikuli
sikulix-2.0.1.jar --v -r first.sikuli

Win10, openjdk version "1.8.0_232" 64bit.

br

Revision history for this message
masuo (masuo-ohara) said :
#3

I can see output by using -c option.

[example]
java -jar C:\SikuliX2.0.0\sikulix-2.0.0.jar -c -r C:\ScriptSikuliX\trial_stdout.sikuli

Revision history for this message
Adam K (kradam) said :
#4

Thx Masuo!
java - jar sikulix.jar ... makes the difference.
When I used sikulix.jar ... the script was working, but the output was hidden.