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