title: Arithmetic syntax error with shell script
body: <p>I am trying to call the function "warn" if the calculation is TRUE. I am still not quite comfortable with the syntax, would like some tips on how to fix the last line.</p>
  
  <pre><code>    if [ "$noproc" -gt 0 ]; then
      echo "WARNING: NoProc at $noproc for $process processes." &gt;&gt; $log
  
          elif [ "$max" -ge 11 ]; then 
          [ $(($max - $total)) -lt 6 &amp;&amp; [ $idle -le $(($max \* 0.25 | bc -l)) ] ] | warn $total $process $max $idle
  </code></pre>
  
  <p>The error I get: line 97: [: missing ` ] '</p>