Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

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

    Posted on

    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

    by

    points

    Responses

    Red Hat

    Quick Links

    Help

    Site Info

    Related Sites

    © 2025 Red Hat, Inc.