Cpu.sh not working although i did everything as of now

I am now not using commands like tr and bc and also the code is completely giving out put now but still there seems to be nothing in logs.
any mentor please look into my code and help me out.