Never mind, I figured it out.  I apparently wasn't assigning variables
correctly (I thought I was).  I needed to use the shell:tac command to do
what I wanted.

Ryan

On Mon, Jun 22, 2015 at 9:07 AM Ryan Moquin <[email protected]> wrote:

> Hi, I'm trying to create a sequence of Karaf commands I can alias to
> detect if a child instance with a particular name exists but am running
> into some trouble because if it doesn't exist the command returns null and
> I can't figure out how to detect it.
>
> The statement I'm trying to execute is:
>
> i  = (instance:list | grep child)
>
> I'm trying to then use an if statement to check if $i is nor empty (which
> I can't figure out either.)  If the child instance doesn't exist, then $i
> = null which causes issues if I tried to say:
>
> if {$i isEmpty} {
> ...
> }
>
> Is there a better way to do this in Karaf 3.0.3 out of the box?
>
> Thanks,
> Ryan
>

Reply via email to