like that i have 20 apps
so now i am running each application using below command at command prompt manually:
wsadmin.bat -lang jython -f C:/opt/WAS/xxxx/deployments/scripts/createJ2Cauth.py C:/opt/WAS/xxxx/deployments/scripts/apps/yyyy/app1/createj2cauth.properties
in my development environment it is working fine
Now my questions is:
1) i need a shell script or jython script to run and set all resources(like batch file) on UNIX and windows environment
2) i need a shell script or jython script to run particular .py and .properties to set resource by taking the user input.
Ex: i need to update only J2C authentications
i am not expert in shell or jython script could you please somebody help me on this ...
- if all of the commands to be executed are in some directory, and they all use the same properties file, you could have a Jython script expect / require the "directory" containing the scripts to be executed. It could then use operating systems command to identify all of the *.py (or *.jy) files in the specified directory, and use "execfile" command to execute each.
> The challenges:
? What should be done if & when an error is encountered?
- Another possibility: have a file contain the list of script to be executed.
This has the advantage of specifying an order in which the scripts should be run.
What would you like to do?