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
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: wlst ls() no print
 
jQuery in Action, 3rd edition