4 Replies Latest reply: Aug 25, 2014 6:40 AM by tvCa-Oracle RSS

    UNIX shell script error

    Charvie

      HI

       

      I am using below shell script to deploy components on server. I am facing issues while running this script from unix shell.

      any help will be great.

      Please find the script file attached.

       

      Thanks in advance

      Charvie

        • 1. Re: UNIX shell script error
          WadhahDaouehi

          Hi,

          Your script use the variable shell $XXMPP_TOP which is not defined in the script, take care of this.

           

          And also, make sure where you execute this script (the command cp copys files in same directory where you execute your script)

          cp XXMPP_PRE_DELIVERY_PO_VS.ldt           $XXMPP_TOP/bin/XXMPP_MEASURE_WS

          cp XXMPP_PRE_DELIVERY_VENDOR_VS.ldt       $XXMPP_TOP/bin/XXMPP_MEASURE_WS

          ....

          cp XXMPP_PREDEL.fmb                       $AU_TOP/forms/US

           

          Also, make sure the command FNDLOAD exists. for more example about Oracle FNDLOAD Scripts

           

          Best Regards

          • 2. Re: UNIX shell script error
            Charvie

            Hi

             

            Thanks for the reply.

            $XXMPP_TOP is a custom top created and defined in the server.

            following is the error i am getting.. earlier i was not facing issues with other such scripts but dont know how come this error got introduced.

             

            Thanks for the reply.

            • 3. Re: UNIX shell script error
              WadhahDaouehi

              Hi,

              Is the error still exist? if yes, put out the error.

               

              Best regards

              • 4. Re: UNIX shell script error
                tvCa-Oracle

                What is the issue you have ?

                 

                I'm seeing the same thing as noted earlier : you should check on XXMPP_TOP because if it is empty, the script will fail.

                 

                No issue, but a change may be to change

                 

                if [ $LOG_FILE ]

                then rm -f $LOG_FILE

                fi

                #

                echo "Start of Log File" >> $LOG_FILE

                 

                into

                 

                echo "Start of Log File" > $LOG_FILE

                 

                The single redirect symbol should and would remove the file, then adds the new info