4 Replies Latest reply on Aug 27, 2013 1:17 AM by Dhananjaya Madiraju

    Pass parameters to CLI script file

    Alexander Koledzhikov Newbie

      Currently, I have a file with a simple cli script (named startServers.cli):





      And I invoke it by running the jboss-admin.bat from a batch file:


      call %JBOSS_HOME%\bin\jboss-admin.bat --connect --file="%SOME_DIR%\startServers.cli"


      The question is if I can pass parameters to the script, so I wouldn't have to hardcode the server names. I'd like to do something like this for the script file :



      and invoke it multiple times with different arguments?

      Thanks in advance!