[clug] Cron environment
Damien Elmes
clug at repose.cx
Thu Jan 8 00:36:42 GMT 2004
"Geoff Smith" <gsmith at geoffco.net> writes:
> Hello,
>
> I have a script that works fine when I run it from a command line, (it's
> the mozilla fullscreening F11 pressing python script that was posted
> here a while ago)... but when I run it from cron, it doesn't work.
> I'm thinking it's something to do with the environment that cron runs
> in. How can I give cron the same environment that I have when I log in
> using ssh or at the console?
DISPLAY=:0 <name of script>
(assuming you're running the cron on the local machine as the same
user as the X display)
Cheers,
--
Damien Elmes
More information about the linux
mailing list