title: Crontab - sh: ip command not found
body: <p>I have a php script that can successfully get the results of this command.</p>
  
  <pre><code>exec("ip addr list",$results);
  </code></pre>
  
  <p>if I run it on command line using</p>
  
  <pre><code>/usr/bin/php /root/myscript.php
  </code></pre>
  
  <p>but when crontab will make it run, it will result to sh: ip command not found.
  i also tried</p>
  
  <pre><code>exec("/sbin/ip addr list",$results);
  </code></pre>
  
  <p>but still no luck</p>
  
  <p>Any help would be greatly appreciated.</p>