Red Hat Bugzilla – Bug 813912
Unable to execute external scripts via CLI in non-interactive mode
Last modified: 2013-09-01 06:13:50 EDT
Description of problem:
RHQ does not allow a developer to include scripts into a another script for execution in non-interactive mode.
For example, a developer may have several scripts which all use the same utility functions from an external file, wishes to execute these scripts in non-interactive mode, especially in the case of third party tool integration.
The only option that does not involve pre-processing for the developer, is to replicate the contents of external scripts in each main script, which can quickly become a maintenance issue.
Please reference the following quote and link for reference:
"As of RHQ 4.3.0 there is no way for the CLI batch scripts (i.e. scripts executed non-interactively) or server-side CLI alert scripts to include other scripts. This severely limits the modularity we can achieve because the user must resort to copy-pasting all the required code "snippets" they might need in their script."
Version-Release number of selected component (if applicable):
Request that some initial support for the functionality be included within the product, for example exposing the "exec" command in non-interactive mode.
I am upping the severity of this to HIGH. For anything beyond a trivial script, this is a severe limitation as you have to resort to literally copying and pasting code that would otherwise be reusable as a shared library of some sort. At a minimum, we ought to expose the exec command in non-interactive mode; however I much more strongly favor a solution like upgrading to the latest (very stable) release of rhino so that we can take advantage of a standardized and increasingly used solution in CommonJS.
setting priority to medium per BZ triage 4/23 (crouch, santos, oleary, foley)
Lukas, I am reassigning this to you since this is covered by the work you are doing.
Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since.