Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Winstonb

  1. Winstonb

    AdminControl.startServer (jython) and threads

    If anyones interested, I did find a way to get this to work. KSH script invokes JY script. ========================================================== #!/usr/bin/ksh # Scriptname: start_server.ksh # Notes: Starts appservers which are not already running. # Can be run with either 0,1,2 or 3...
  2. Winstonb

    AdminControl.startServer (jython) and threads

    Thanks for the reply. Script does work ok however when I run it through line by line, it's only when I use the wsadmin.sh -f option does it fail, despite the script being identical to the lines I've just typed in via the wsadmin.sh cmd line. Don't know if a shell script would work as I want...
  3. Winstonb

    AdminControl.startServer (jython) and threads

    Hello, Does anyone know why this is happening ? I've written a jython script that should be able to start non-running AppServers simultaneously on a "per node" basis. ie, Each node starting 1 x AppServer at a time, but independantly of of each other. This works ok if I run each command one by...
  4. Winstonb

    Cannot append to system command

    Ishnid, Thanks for that, chomp worked perfectly.
  5. Winstonb

    Cannot append to system command

    Trying to append a double quote to a variable. The system command seems to end the line, any ideas on a way round this ? eg, $x = `DATE /T` ; $y = $x.'"' ; print $y ; Wanted..... 23/06/2008" But I get..... 23/06/2008 "
  6. Winstonb

    Setting Windows variables from within a Perl script

    Thanks for that, I have however stumbled across this, which seems to do the trick... $ENV{'PATH'} = 'C:/mypath';
  7. Winstonb

    Setting Windows variables from within a Perl script

    Hello, New to Perl and trying to set Windows variables from within Perl. eg; set JAVA_HOME=C:/java Does anyoneone know how this could be invoked via a perl script ? Thanks in advance Winston
  8. Winstonb

    Importing a module using a variable name

    Thanks ZaSter, That worker perfectly. Winston
  9. Winstonb

    Importing a module using a variable name

    Hello, I would like to import a module using a "read in" variable. eg, something along the lines of: ---------------------------------------------------------- variable = raw_input("Module name is: ") # type in MYMOD import variable ----------------------------------------------------------...
  10. Winstonb

    AdminConfig.create('WebServer') jython command

    Hello, Does anyone know if or how a WebServer object can be created via jython, using the AdminConfig command. I know it can be done via AdminTask, but would prefer the former. Thanks in advance Winston
  11. Winstonb

    Truncating a string

    Thanks a lot KMarris That worked a treat.
  12. Winstonb

    Truncating a string

    Does anyone know how to do this in python ? var = testing(123)(234) I want to print out only "testing" by truncating var. I would imagine that this could possibly be done by splitting "testing(123)(234)" into multiple fields using ( as the delimitter, and then printing out only the first...
  13. Winstonb

    Appending a digit to a string

    That's brilliant, worked a treat. Thanks
  14. Winstonb

    Appending a digit to a string

    Thanks to both of you for the help, much appreciated. What I'm looking for however is something that will print one and then two, not literally config.var1 and config.var2. Thanks again Winston
  15. Winstonb

    Appending a digit to a string

    Hello, New to Python / jython. Have a problem appending a digit on to the end of a string as per below. Does anyone know a way around this ? contents of config.py file.... total = 2 var1 = one var2 = two contents script.py file..... import config count = 1 while count <= import.total: #...

Part and Inventory Search

Back
Top