This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes wlst ls() no print Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "wlst ls() no print" Watch "wlst ls() no print" New topic
Author

wlst ls() no print

Michael Drona
Greenhorn

Joined: Aug 08, 2009
Posts: 5
Is there a way to make wlst's ls() return a list and then not print the results also?

I found ls(returnMap='true') but the problem is that it does like


I want to supress that first dr-- junk so that I can format the output like I want to see it from my script. I can do my own "for b in a: print" or whatever I want to do.
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

I have not used ls() before. But if I find some spare time, I ll try and give you an answer. Perhaps there is some one here that already knows the answer to your question.


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Pavan BhavaniShekhar
Greenhorn

Joined: Nov 16, 2006
Posts: 9
Dear WLAs,

my blog might be helpful for accessing python list in WLST.

JMS monitoring using WLST



Thanks & regards<br />Pavan BS Devarakonda<br />WebLogic Admin<br />Hyderabadi
Alex Barrios
Greenhorn

Joined: Sep 04, 2013
Posts: 1

Michael Drona wrote:Is there a way to make wlst's ls() return a list and then not print the results also?

I found ls(returnMap='true') but the problem is that it does like


I want to supress that first dr-- junk so that I can format the output like I want to see it from my script. I can do my own "for b in a: print" or whatever I want to do.


Hi Mickeal,

Try surrounded the ls statement with 'redirect' to suppress the unwanted output of the ls statement.
Abhinav Sonkar
Greenhorn

Joined: Nov 20, 2013
Posts: 16
The ls() command is meant to be used in interactive mode only and not in scripts in general. You can use cmo.getDestinations() to get the list of destinations.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: wlst ls() no print
 
Similar Threads
Using WLST, How can I find the status of my application running managed server?
Issue with WeblogicServer
Weblogic 9 and 10 WLST reset connection pool
Log file rotation issue in weblogic10
Create MBean with command line interface.