Execution of check-SLEE.sh and ps_list.sh Scripts Fail with "arithmetic syntax error" or Throws Warning "escape sequence `\/' treated as plain `/'"

(Doc ID 2317601.1)

Last updated on FEBRUARY 12, 2018

Applies to:

Oracle Communications Convergent Charging Controller - Version 6.0.0 and later
Information in this document applies to any platform.


On all versions of Oracle Communications Convergent Charging Controller (OC3C), after installing nawk, the check-SLEE.sh script will begin to fail and throw the following error when executed:

acs_oper@SLC01:/IN/service_packages/SUPPORT/bin$ ./check-SLEE.sh
./check-SLEE.sh: line 316: [511542]: arithmetic syntax error

If the nawk package is not installed, then by default nawk is a softlink to gawk:

bash-4.2$ which nawk

bash-4.2$ ls -lh /usr/bin/nawk
lrwxrwxrwx 1 root root 4 Sep 2 2016 /usr/bin/nawk -> gawk

This results in the following warning being thrown, but the script will still execute correctly (as opposed to the error and failing):

nawk: cmd. line:5: warning: escape sequence '\[' treated as plain '['

This article will cover the necessary changes to be made to both the check-SLEE.sh and ps_list.sh scripts in order to prevent these alarms from being thrown.



Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms