[clug] Cron environment
Martijn van Oosterhout
kleptog at svana.org
Thu Jan 8 00:40:59 GMT 2004
The obvious problem is that the program doesn't know which X server to talk
to. You need to at least set the DISPLAY variable. :0 is the first local X
server.
Hope this helps,
On Wed, Jan 07, 2004 at 06:02:22PM -0600, Geoff Smith wrote:
> 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?
>
> Ideas?
>
> Cheers,
>
> Geoff
>
>
> --
>
--
Martijn van Oosterhout <kleptog at svana.org> http://svana.org/kleptog/
> (... have gone from d-i being barely usable even by its developers
> anywhere, to being about 20% done. Sweet. And the last 80% usually takes
> 20% of the time, too, right?) -- Anthony Towns, debian-devel-announce
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.samba.org/archive/linux/attachments/20040108/15a64336/attachment.bin
More information about the linux
mailing list