-
1. Re: Pass parameters to CLI script file
szhigunov Jan 5, 2012 2:34 PM (in response to akoledzhikov)Anybody knows if it is possible? It would be nice to configure multiple environments by running the same CLI script with different parameters. Or run CLI script which would use values from system variables.
-
2. Re: Pass parameters to CLI script file
simplex-software Mar 20, 2013 12:20 PM (in response to szhigunov)Hi, did you find any solution to your problem ? I mean a simple one ? It's unbelievable that a scripting langiage having if-then-else and try-catch structure to not support passing parameters !
-
3. Re: Pass parameters to CLI script file
ssilvert Mar 20, 2013 12:35 PM (in response to simplex-software)nicolas duminil wrote:
Hi, did you find any solution to your problem ? I mean a simple one ? It's unbelievable that a scripting langiage having if-then-else and try-catch structure to not support passing parameters !
You should be able to use system properties. See System properties in operation parameter values and command arguments
If you want to do something more sophisticated you can use another scripting language. See Advanced CLI scripting with Groovy, Rhino, Jython, etc.
Stan
-
4. Re: Pass parameters to CLI script file
dhananjay_m Aug 27, 2013 1:17 AM (in response to akoledzhikov)Hi,
Did you find a way to pass parameters to the script ? ..
I cannot use jython, since I cant expect customer machines to have jython installed to execute .py scripts.Only option I have is passing CLI scripts (which I'm writing to configure datasources, ldap, deployment of ear files and so on.) to jboss-cli.bat/.sh
Regards,
Dhananjay