2 Replies Latest reply: Jul 21, 2014 9:23 AM by _Phil RSS

    Storing OS command output in a ODI variable

    User554830

      Hi,

       

      I need to count files in a linux directory and store the result in a ODI variable for further processings.

       

      I tried creating a procedure using ODITools technology and command as under

       

      OdiOSCommand

      #CountFiles = ls  /export/home/abc/Testing |wc -l

       

      The above procedure is executing without errors but no data is getting stored in the ODI variable .

       

      I am new to this technology . Can someone please suggest a way to do this ?