every time I enter a CLI-command for glassfish like this asadmin start-instance i1
I am prompted to enter the admin-username and admin-password.
How can I disable the need for entering these credentials?
I plan to write scripts for running commands like this and I think it's not possible to enter the credentials in a bash script.
Thanks
The password file option is perhaps to verbose.
Simply do the following:
asadmin start-domain mydomain
asadmin login
Put in the admin user name and the admin password.
In your user home directory a file will get created
".asadminpass] successfully. Make sure that this file remains protected. Information stored in this file will be used by asadmin commands to manage the associated domain. Command login executed successfully."
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With