Running via batch file showing passwords

Asked by Huko K on 2018-07-19

Good morning - Is there any way to disable/hide the command prompt windows that shows what the script is doing? My concern is that it shows the log of what it's doing including passwords!

I'm using version 1.1.2

Here's the batch file I'm using (Win 7 user)

\\nas1\remote$\Programs\scripts\siqulix\runsikulix.cmd -r,u "\\nas1\remote$\Programs\scripts\siqulix\scripts\UnknownClient.sikuli"

----------------------------------------------------------------------

I've tried the following within the script:

Settings.ActionLogs=0
Settings.InfoLogs=0
OpsPassword = input("Please enter your OPS password", hidden = True)

It still shows it in the cmd prompt windows.
Thanks again for this amazing software (I'm still very very new to it)

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
2018-08-30
Last query:
2018-08-30
Last reply:
2018-07-21

I think you may try redirecting STDout to nul, as described here:
https://serverfault.com/questions/132963/windows-redirect-stdout-and-stderror-to-nothing

That is run the script as
\nas1\remote$\Programs\scripts\siqulix\runsikulix.cmd -r,u "\\nas1\remote$\Programs\scripts\siqulix\scripts\UnknownClient.sikuli" > nul 2>&1

Best RaiMan (raimund-hocke) said : #2

I checked with the latest 1.1.3:
A script simply containing this line:

OpsPassword = input("Please enter your OPS password", hidden = True)

does not print the entered password when run from commandline (even not in the IDE and even not with debug level set to 3).

Huko K (huko600rr) said : #3

Thanks RaiMan, that solved my question.