How to send anything to stdout using CLI

Asked by Adam K on 2019-12-17

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:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
Adam K
Solved:
2019-12-19
Last query:
2019-12-19
Last reply:
2019-12-19
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.

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

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

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.