Portal Home > Knowledgebase > Articles Database > /root/load.sh: line 5: [: average:: integer expression expected


/root/load.sh: line 5: [: average:: integer expression expected




Posted by radium1200, 08-25-2010, 10:58 AM
What is wrong with this line? if [ $LIMIT -ge 2 ]

Posted by Russ Foster, 08-25-2010, 11:17 AM
Try if [ "$LIMIT" -ge 2 ]

Posted by haind, 08-26-2010, 09:30 AM
You must post full scripts to here

Posted by radium1200, 08-26-2010, 02:32 PM
I had to remove this script today. I had a cron hitting it every 5 minutes and this script, which is supposed to tell me which processes are out of control, became the problem. I might ditch this method and try Ksar, but installing Java doesn't look fun.

Posted by madaboutlinux, 08-27-2010, 06:12 AM
try replacing the following lines with See if it helps else paste the error message.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Script Updates (Views: 683)
Dell beast (Views: 705)


Language: