rss
SOATUBE
Oracle
Custom Search SOABYTE here

Wednesday, April 23, 2014

How to get OS type from WLST script

Following is a wlst script to fetch Platform OS Type.
##########################################################
#Getting Platform OS information through WLST
#Save the following as getOSType.py
#Run $WL_HOME/common/bin/wlst.sh < getPlatform.py to get the OS Name in the standard output.
##########################################################
import java.lang.System
platform=java.lang.System.getProperty('os.name')
print "\n os.name = " + platform + "\n"

1 comments:

Post a Comment

 
Blogger Profile