File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion 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: 6662
    
    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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: wlst ls() no print