If you are writing automate script and you are worried about password beeing seen in history and ps output, then you can set password from standard input
jboss-cli.sh -c <<EOF
In that way password won't be shown in history neither in ps output.
Thanks, but i have to execute multiple batch with username password passed as the command line input because i don't want to prompt the user multiple times to input the credentials. I could do that in a shell script, by reading the user credentials and passing them to the jboss-cli.sh as a runtime value, but that will show-up in the ps output, at least for sometime and is a security concern, so don't want to do that.
There seems to be some solution at https://access.redhat.com/solutions/970773 but i'm not a registered user ..