2 Replies Latest reply on May 6, 2014 2:39 PM by Don Kim

    Variables in EO's

    Don Kim

      I am creating an EO on AIX where the naming syntax uses the short hostname to define cells.

       

      I am running a hostname command, and this part works fine:

      h=`hostname -s`; echo $h

       

      But when I try to put this in to a path, I tried a combination of braces and quotes, but still unable to get the expansion I want:

      h=`hostname -s`; grep foo /app/WebSphere/Server/profile/config/$hcell/file

      .../app/WebSphere/Server/profile/config/hcell/file

      .../app/WebSphere/Server/profile/config/{h}cell/file

       

      I also tried this:

      /app/WebSphere/Server/profile/config/*cell/file

       

      What are some ways to use variables in EO's/CF's or use a wildcard in the path?