How to Call Linux Script Program in Wlst Script
Linux Script:
$ cat test.sh
echo "HELLO WORLD"
wlst script part:
$ cat monitor_jdbc.py
import os
os.system('sh test.sh')
connect('[username]','[password]','t3://[ip]:[port]')
allServers=domainRuntimeService.getServerRuntimes();
Output part:
./wlst.sh monitor_jdbc.py
HELLO WORLD
Connecting to t3://<ip>:<port> with userid weblogic ...
Successfully connected to Admin Server 'AdminServer' that belongs to domain 'testpy'.</port></ip>