RegEx Breaking ARG into 2 ARGs
Posted: Wed Aug 13, 2014 11:09 am
Hi,
I am trying to put in an exclude argument into the check_oracle_health. When I put the arg string into $ARG1$ and save, it splits it at the "!". I tested the string by running it on the command line and it works. I also replaced the "!" with another "?" and that did not split the ARG into 2. I also tried to escape the "!", but that did not work.
Here is the ARG string.
It splits as follows:
The command is:
Something special about the ! that would cause ARGs to be split? Is there a way around it?
I am running 2014 R1.3 on RHEL 6.5.
Thanks.
I am trying to put in an exclude argument into the check_oracle_health. When I put the arg string into $ARG1$ and save, it splits it at the "!". I tested the string by running it on the command line and it works. I also replaced the "!" with another "?" and that did not split the ARG into 2. I also tried to escape the "!", but that did not work.
Here is the ARG string.
Code: Select all
--encode --connect "DB_instance" --username user --password "passwd" --mode tablespace-usage "^(?\!UNDO*$)" --regex --warning 90 --critical 95
Code: Select all
$ARG1$ = --encode --connect "DB_instance" --username user --password "passwd" --mode tablespace-usage "^(?
$ARG2$ = UNDO*$)" --regex --warning 90 --critical 95
Code: Select all
/usr/bin/env LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib ORACLE_HOME=/usr/lib/oracle/12.1/client64 $USER1$/check_oracle_health $ARG1$
I am running 2014 R1.3 on RHEL 6.5.
Thanks.