i have a script that checks the output of ps to see if squid is using too much cpu - the script is run by cron every 10 minutes. Occasionally (not always), I will get an email declaring:
which is from the line
running the script with sh -xv can also sometime produce this error.
Curiously, this seems to occur either at hh:00 or hh:30
Code:
[: -gt: unexpected operator
which is from the line
Code:
if [ ${test} -gt 30 ]; then
running the script with sh -xv can also sometime produce this error.
Curiously, this seems to occur either at hh:00 or hh:30