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...
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...
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...
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
"
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
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
----------------------------------------------------------...
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
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...
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
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:
#...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.