Do you set and export the DISPLAY variable? >From an xterminal run:
env | grep DISPLAY to see what it is set to. I would think that if you do startx as root then the crontab would have to be root's. Also, if your cron job fails you should get email. Check that for errors. Test your script. Open an xterm and type: unset DISPLAY then run your script. Does it work? Bill PS. My run level is 3 not 5. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of German Guillot > Sent: Thursday, August 05, 2004 12:13 PM > To: [EMAIL PROTECTED] > Subject: Re: [newbie] Cron doesn't run for user > > > On Fri, 06 Aug 2004 01:42:10 +1000, Stephen K�hn <[EMAIL PROTECTED]> wrote: > > > Ok...just for giggles and grins, I just created a small script to fire > > up Galeon (/home/stephen/bin/start_galeon) :: > > > > <snip> > > #!/bin/bash > > > > /usr/bin/galeon http://freshmeat.net > > > > exit > > </snip> > > > > Fired up kcron as myself, added the task, saved the task; fired up kcron > > again and forced a run; worked like a charm; was I missing something > > originally in the thread? > > Well, damnit. No, you're not missing anything, but I obviously am. I > have a little script just like yours. I create a crontab with a task > for it. It just doesn't work. Other scripts with other commands (cat, > for example) are run by cron from my crontab, no problem. So it's not > that I can't program a task in cron. It's not that I can't write a > script to fire up a browser, that too works (run from the xterm). > > The only thing I can think of is that your X configuration and mine > are different, and mine doesn't allow me to do this. Got a lot more > studying to do. > > Germ�n. > >
____________________________________________________ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com ____________________________________________________
