AnsweredAssumed Answered

Using REGISTER_VARIABLE

Question asked by RInnocent on Apr 20, 2018
Latest reply on Apr 20, 2018 by FrankMuffke

I want to store the output of a Bash command in an Automic variable in Automic 12.1. I browsed these community pages and saw a few references to REGISTER_VARIABLE. I wrote a script to test this and am not quite getting the result I expect.

:DEFINE &TEST#, string
:BEGIN_EXT_INT BASH
:REGISTER_VARIABLE TEST#,$ORACLE_HOME
:END_EXT_INT BASH
:PRINT "Variable output: &TEST#"

In my report, I see the following message:

Registered variable: 'T' TEST#=[valid path]

 

However, the &TEST# variable appears to still be empty as the PRINT function only printed

Variable output:

 

I'm new to Automic, so there's probably just something simple I'm missing.

 

Thanks in advance.

Outcomes