Click to See Complete Forum and Search --> : Perl script to rotate desktop background


Col. Panic
04-28-2003, 01:56 PM
Hi, all.

I wrote myself a quick 'n' dirty Perl script to select an image for my desktop background at random and then let cron run it periodically. The script runs fine when I execute it manually, but the problem arises when I go to let cron handle it. Because cron runs it outside of the X environment, I have to specify that I want Esetroot to change display :0.0, and it doesn't like doing that (unauthorized to connect to Server). What switch do I need to flip in order to allow something outside to impact an X session? Or is this possible?

Thanks!