How can I pass a parameter to a cli-script?

Latest response

Today I had to change a system-property's value from "test" to "test.tmp".
I successfully used the following cli command:

system-property=my.mdb.destination/:write-attribute(name=value,value=test.tmp)

Tomorrow I will have to revert this value from "test.tmp" to "test".
How can I pass the value to my cli script and how do I use this parameter in the script?

If it is not possible to pass parameters can I use environment variables of the operating system instead?
How would you do this?

Thank you,
Mathias

Responses