We are trying to read the JBoss status using the jboss-cli.bat
command.
jboss-cli.bat -c --command=":read-attribute(name=server-state)" > "$env:JBOSS_HOME\JbossServerStatus.txt"
Storing the status in the TXT
file. Since "Press any key to continue" occurs, the controller doesn't return back.
Is there any way to ignore the Press any key to continue without editing the jboss-cli.bat
? We know that by adding set NOPAUSE = true
, will avoid this problem, but we are looking for solution without editing the file.
set "NOPAUSE=true" & jsboss-cli.bat ....
– Knisley< nul jboss-cli.bat ....
– Sollie