Thursday, January 13, 2011

Create your own WLST commands

You can create your own WLST commands

Example

create a testFile.py file with below,
def mycmd():

    print 'Hello'

copy it in below location:

$WL_HOME/wlserver_10.3/common/wlst/lib


Go to wlst command line:
$WL_HOME/wlserver_10.3/common/bin

bash-3.00$ ./wlst.sh

Run below :
wls:/offline> testFile.mycmd()
Hello

No comments:

Post a Comment