Quote:
|
Originally Posted by JungleNut
njdube, would you mind telling us how you solved it? I am also trying to open a url with firefox on a daily schedule and I am getting the same error. I created a shell script to open firefox and load the page I want, and that works fine when manually called from a terminal, but genreates the error above when cron tries to run it.
|
I made a script called appalud.sh and put it in /home/njdube/bin
Here is my script
************************************************
export DISPLAY=:0
/opt/MozillaFirefox/bin/firefox.sh "http://bbs.freetalklive.com/index.php?action=modifykarma;sa=applaud;uid=1134;topic=6232.0;m=101694"
************************************************
The above script should only be two lines. This BBS is doing word wrapping crap.
The problem is, for the script to work you have to leave a copy of firefox running when the script is executed. It's a small annoyance if you don't mind leaving firefox running all the time.
I used a KDE program called KCron to set the cron job. I'm still not that happy using the CLI.
Make sure you right click on the script and check mark "Is executable" under the "Permissions" tab if you're in KDE.
I don't know what your experience is in cron jobs. But in KCron make sure every thing is check marked. Except in the minutes section just pick 00. That's if you just want it to run once every hour every day.
In KCron what you're doing is check markting the time you want it to run. It's weird. It just takes getting used to.