5 Replies Latest reply on Aug 15, 2017 11:12 PM by Sridar Venkat

    IF command in Pre-Session Shell

    Sridar Venkat New Member

      Hi,

       

      Is it possible to execute a IF command in Pre-Session Shell command.

      Am trying to execute the below command but it doesnt work:

       

      if [ -e $INFA_ROOT/SrcFiles/Sam/test_1.dat ]

      then

      touch $INFA_ROOT/SrcFiles/Sam/test_2.dat

      fi

       

      Error

       

      sh: -c: line 3: syntax error near unexpected token `fi'

      sh: -c: line 3: `fi'

       

      Thanks,

      Sridar Venkatesan