wsadmin.sh profiles
Profile scripts run before other scripts, allowing one to customize the environment. They can be run in two ways:
- Specify the -profile command option with wsadmin. For example...
myprofile1.jacl is run before myprofile2.jaclwsadmin -profile /path/to/myprofile1.jacl -profile /path/to/myprofile2.jacl- Specify the profile scripts using the property...
com.ibm.ws.scripting.profiles...property in the properties file. For example....com.ibm.ws.scripting.profiles=/path/to/myprofile1.jacl;/path/to/myprofile2.jacl
If profile is specified, the profile is run when the scripting process starts. Any command specified with the -c command option and script file specified with the -f command option runs after the profiles are executed. In this way, the command and script file can use anything set up by the profiles. If the scripting process brings up an interactive session, then any procedures and variables defined in the profiles are available to the interactive session.