Stern inaktivStern inaktivStern inaktivStern inaktivStern inaktiv
 

IBM Connections: wsadmin commands in batchfiles or shell-scripts

If you want to generate more complex jython scripts to be executed on IBM Connections environments you will recognize that you allways have to draw the decision on which server this should be executed. If you have an easy infrastructure you will be prompted to choose either 1 or 2.

This will work if you use wsadmin in commandline mode. But if you start to generate your own jython scripts you might want to execute them without being prompted. The most easiest way to solve this is to start your script with a variable.

Example:

import sys

batchMode=1;execfile("communitiesAdmin.py")

.......

The batchMode Variable predefines the serverdecision and you will no longer been prompted. Be aware that the name of the variable is case sensitive.

 

Have fun