This discussion is archived
0 Replies Latest reply: Apr 22, 2013 12:45 AM by Bob RSS

WLST output in printable format

Bob Explorer
Currently Being Moderated
Hi All,

I need to mail the output of WLST script.
I am calling wlst script from a .sh file and tried below command:

eval '"${JAVA_HOME}/bin/java"' ${JVM_ARGS} weblogic.WLST 'JMSMonitoring.py' > output.txt

but this command populates output.txt with below output before actual output of the script:

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

Connecting to t3://<host>:7001 with userid weblogic ...
Successfully connected to Admin Server 'AdminServer' that belongs to domain 'aia_domain'.

Warning: An insecure protocol was used to connect to the server. To ensure on-the-wire security, the SSL port or Admin port should be used instead.

I only need the actual output of the script i am running as the mail body.
Please suggest if it is possible.

Thanks in Advance

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points