UC4 Error on executing BODY script

Document ID : KB000089190
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
UC4 Error on executing BODY script
Resolution:
Detailed Description and Symptoms

Errors showing up in job output on target system.

From the log

...

End of parameter file

job pid 28446

/u01/app/uc4/exec/BODY: [[: not found

starting at Tue May 10 10:05:37 EDT 2011

complete at Tue May 10 10:05:42 EDT 2011

awprint PRINT -j 445331.00 -n b.445331.00 -d /u01/app/uc4/out


Investigation

The problem is with this section of code in $AW_HOME/exec/BODY

if [[ $free_space < 1000 ]]; then

echo Not enough free space $free_space found 1000 required

error_exit "No dsk space" 3

exit 1

fi

The double bracket test works fine in ksh or bash, but when you try to run it in sh(bourne) it will throw the same error since it doesn't know what to with that syntax.


Solution
Change the following line, and remove the second set of brackets.

free_space=100

if [ $free_space -lt 1000 ]; then

echo Not enough free space $free_space found 1000 required

exit 1

fi