Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Invoking the script without arguments displays the usage clause:


Code Block
languagebash
titleUsage
Usage: set_job_resource.sh [Options] [Switches]

  Options:
    --url=<url>                   | required: JOC Cockpit URL
    --controller-id=<identifier>  | required: Controller ID
    --job-resource=<path>         | required: path to job resource
    --key=<identifier>            | required: name of variable in job resource
    --value=<string>              | required: value of variable in job resource
    --cacert=<path>               | optional: path to Root CA Certificate for HTTPS connections
    --user=<account>              | optional: user account for login to JOC Cockpit
    --password=<account>          | optional: password for login to JOC Cockpit
    --log-dir=<directory>         | optional: log directory for log output of this script

  Switches:
    -h | --help                   | displays usage
    -v | --verbose                | show verbose log output
    --show-logs                   | shows log output if --log-dir is used
    --make-dirs                   | creates directories if they do not exist

...