I have a script that I have written to be run out of cron. The script will be running a java program that for some dumb reason needs to attach to an Xserver even though I'm not displaying anything.
I can't seem to figure out how to set the DISPLAY variable from perl. If I run the script by hand it works fine because it picks up my environment. However I need to run it from cron.