Hi,
I have a cron job which executes daily once 9 PM.
The script is like
if [ ${PRNTSHELL} = "OC" ]
then
TYPE=OC
elif [ ${PRNTSHELL} = "I" ]
then
TYPE=i
elif [ ${PRNTSHELL} = "MMC" ]
then
TYPE=mmc
elif [ ${PRNTSHELL} = "CB" ]
then
TYPE=CB
elif [ ${PRNTSHELL} = "OTH" ]
then
TYPE=oth
fi
SBTYPE=`echo $TYPE | tr [a-z] [A-Z]`
During the exection of the script some time (not always) I get the below message:
Usage: tr [ -cds ] [ String1 [ String2 ] ]
Usage: tr [ -cds ] [ String1 [ String2 ] ]
Can any one please help me. I am not able find out the cause. Please someone help me to esolve this issue.