Sponsored Content
Full Discussion: WLST script python
Top Forums Shell Programming and Scripting WLST script python Post 302970545 by Chubler_XL on Thursday 7th of April 2016 11:46:46 PM
Old 04-08-2016
Your indentation appears to be incorrect, is the error relating to unexpected indent?

Try:

Code:
servers=domainRuntimeService.getServerRuntimes()
for server in servers:
    components=server.getSubsystemHealthStates()
    componentsList = components.tolist()
    for component in componentsList:
        if not "HEALTH_OK" in component:
            error_message+=server.getName() + "\n" + str(component) + "\n\n";

 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to run python script from a Tcl script

Hi I have a python script,i need to run this script from a tcl script.Can anyone let me know how to do this (1 Reply)
Discussion started by: nathgopi214
1 Replies

2. Shell Programming and Scripting

Hi Python and shell script,the script hangs

Hi I need to run a shell script from a TCL script,the shell script in trun will run a python script 1.Tcl script set filename "./GopiRun.sh" 2.GopiRun.sh python ./psi.py $MYSB/test_scripts/delivery/gpy1.py 3.I have my gpy1.py script. Here the problem i am facing is on running... (0 Replies)
Discussion started by: nathgopi214
0 Replies

3. Shell Programming and Scripting

Passing variable from shell script to python script

I have a shell script main.sh which inturn call the python script ofdm.py, I want to pass two variables from shell script to python script for its execution. How do i achieve this ????? Eg: main.sh a=3 b=3; c= a+b exec python ofdm.py ofdm.py d=c+a Thanks in Anticipation (4 Replies)
Discussion started by: shashi792
4 Replies

4. Shell Programming and Scripting

Need a Python script

I work on various messages received from server and want to write a python script that can sort messages with unique flag values and give me the output in a text file. I get these messages in the form of .zcap file from server, in order to get messages from those files; I use an internal tool:... (0 Replies)
Discussion started by: Vijeta Laad
0 Replies

5. Shell Programming and Scripting

Python script called by a shell script

experts, i wrote a python script to do a certain job, i tried it and it is working fine, i want this script to be executed automatically after a ksh script, the problem is when i execute the ksh script my python script runes perfectly after the ksh script as I have include it at the end of the ksh... (1 Reply)
Discussion started by: q8devilish
1 Replies

6. Shell Programming and Scripting

Help needed with a shell script for deploying ear file to a weblogic server using WLST

Hi, Please help me through a shell script to run from command prompt using WLST for the below purpose: Automation process: >Check the availability of an application. >Stops the EAR if it already exists in Weblogic Server >Undeploys/Delete the project (EAR file) >Deploys the new ear file... (2 Replies)
Discussion started by: Amulya
2 Replies

7. Shell Programming and Scripting

Capture run time of python script executed inside shell script

I have bash shell script which is internally calling python script.I would like to know how long python is taking to execute.I am not allowed to do changes in python script.Please note i need to know execution time of python script which is getting executed inside shell .I need to store execution... (2 Replies)
Discussion started by: Adfire
2 Replies

8. Windows & DOS: Issues & Discussions

How to execute python script on remote with python way..?

Hi all, I am trying to run below python code for connecting remote windows machine from unix to run an python file exist on that remote windows machine.. Below is the code I am trying: #!/usr/bin/env python import wmi c = wmi.WMI("xxxxx", user="xxxx", password="xxxxxxx")... (1 Reply)
Discussion started by: onenessboy
1 Replies

9. Programming

Create a C source and compile inside Python 1.4.0 to 3.7.0 in Python for ALL? platforms...

Hi all... As you know I like making code backwards compatible for as many platforms as possible. This Python script was in fact dedicated for the AMIGA A1200 using Pythons 1.4.0, 1.5.2, 1.6.0, 2.0.1, and 2.4.6 as that is all we have for varying levels of upgrades from a HDD and 4MB FastRam... (1 Reply)
Discussion started by: wisecracker
1 Replies
pyntor-components(1)						      Pyntor						      pyntor-components(1)

NAME
pyntor-components - manage components for the presentation program Pyntor SYNOPSIS
pyntor-components [OPTIONS] DESCRIPTION
Pyntor-components is a helper utility which deals with all the components which are made available to Pyntor. Components can reside in the installation directory, but the user can override them with a user directory and again with components in the current directory. Pyntor- components helps to sort through the available components by listing them. In case the component comes with documentation included, it can be displayed as well. OPTIONS
-l, --list Displays a formatted list of all components. For each component, all occurrences are reported, which might be between one and three directories. -d, --doc=component Displays the documentation for the specified component. If no documentation is included, or the component could not be loaded, an error is displayed instead. -u, --update Displays a graphical dialog which allows the download of new components via the GHNS (Get Hot New Stuff) framework. Components are installed into ~/.pyntor/components and can be used immediately. This is an experimental feature based on the SDLNewStuff library. -v, --version Displays the version number of Pyntor-components. -h, --help Displays a summary of all available command line options. AUTHORS
Josef Spillner <josef@coolprojects.org> SEE ALSO
pyntor(1), pyntor-selfrun(1) Cool Projects 0.6 pyntor-components(1)
All times are GMT -4. The time now is 09:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy