简体   繁体   中英

How to load script when wsadmin shell is used

A system administrator has created a Python script called globalScript. py. What should the administrator do to ensure globalScript. py is loaded when the wsadmin shell is used?

A. Compile globalScript.py to a Java class in the bin directory.

B. Invoke wsadmin with the argument-profileName globalScript.py.

C. Modify the configureCustomProperty script to import globalScript. py.

DD Set the script profiles in the wsadmin.properties file to load globalScript .py.

wsadmin.properties has this entry com.ibm.ws.scripting.profiles where we can add the scripting files to be loaded

So D should be the answer

#-------------------------------------------------------------------------
# The profiles property is a list of profiles to be run before
# running user commands, scripts, or an interactive shell.
# securityProcs is included here by default to make security
# configuration easier.
#-------------------------------------------------------------------------
com.ibm.ws.scripting.profiles=/hosting/products/WebSphereD24/bin/securityProcs.jacl;/hosting/products/WebSphereD24/bin/LTPA_LDAPSecurityProcs.jacl

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM