title: Cron not executing shell script .. but working from commandline
body: <p>My os is Ubuntu 12.04</p>
  
  <p>I am trying to execute a shell script from cron tab ..</p>
  
  <p>that shell script works fine .. when i am  executing directly in command line .. like</p>
  
  <pre><code>sh out.sh
  </code></pre>
  
  <p>it works fine .. but when i am set cron for  this shell script its not working </p>
  
  <p>my shell script : out.sh:</p>
  
  <pre><code>#!/bin/bash
  firefox "http://localhost/acceptance/selenium-main/shell.php"
  </code></pre>
  
  <p>it will opens that shell.php webpage in firefox browser ...  its works fine when executing directly from CLI</p>
  
  <p>..i an setting cron job like this </p>
  
  <pre><code>sudo crontab -e
  </code></pre>
  
  <p>then</p>
  
  <pre><code>23 13 * * * bash /usr/share/nginx/www/acceptance/selenium-main/out.sh
  </code></pre>
  
  <p>this was not working ..</p>
  
  <p>i even tried </p>
  
  <pre><code>33 13 * * * /usr/share/nginx/www/acceptance/selenium-main/out.sh
  </code></pre>
  
  <p>this was also not working ..</p>
  
  <p>even i tired executing from bin also : /usr/local/bin/out.sh </p>
  
  <p>none of the methods are working </p>
  
  <p>Please suggest how to fix this .. because crontab not executing shell scripts .. </p>