Scripting provides the capability to customize the environment in which scripts run by using the profile script. You can specify a profile in the following ways:
Using Jacl:
wsadmin.sh -profile \myprofile1.jacl -profile \myprofile2.jaclmyprofile1.jacl is run before myprofile2.jacl
Using Jacl:
com.ibm.ws.scripting.profiles=/myprofile1.jacl;/myprofile2.jacl
If profile is set in both the -profile option and as a property in the properties file, the profiles listed in the property file are invoked before the profiles in the command option.
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.