We help IT Professionals succeed at work.

Script

Hi,

ccc_usage_query -d .....  > ccc_uq.log

It is a ksh shell script.

I am getting this weird result in the ccc_uq.log. What does it mean and how to fix it... it seem it has to do with the echo statement. Any idea?

Start ccc_usage_query
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
/u/user/ccc_usage_query: There is no process to read data written to a pipe.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
tr: 0653-715 String2 contains an invalid character class.
/u/user/ccc_usage_query executed successfully
/u/user/ccc_usage_query executed successfully
Comment
Watch Question

Commented:
try debugging the script. You can add a

   set -x

statement before the line, where it give error, OR after the first line of the script and run it again. You should be able to see the execution trace to get more details of the issue

Author

Commented:
Hi,

I trace down to this statement. Weird is that the same script can be run in other directory but in certain directory I got this "invalid character class error". What is the problem of this line?

        if [[ $AG_TO_SKIP = $CMOD_TRUE && `echo $AG_NAME_PREFIX | tr [:upper:] [:lower:]` = `echo $PREFIX_AG_TO_SKIP | tr [:upper:] [:lower:]` ]] ; then
I found the problem.

I need to put ' around each of the [:upper:] and {:lower:]. After doing that I don't see the error any more.

Author

Commented:
I found the problem.