Cron/Xwindows

Uncle Jim jim at jimani.com
Wed Oct 22 22:39:19 CDT 2003


Hi,

On Wed, Oct 22, 2003 at 09:38:13AM -0500, Jonathan Hutchins wrote:
> On Wednesday 22 October 2003 09:01 am, Tony Hammitt wrote:
> 
> > You may have to add this to your cron entry:
> 
> > 0 12 * * * DISPLAY=localhost:0 xwindowsprogram
> 
> > or something like that, because it sounds like your program doesn't know
> > which display to contact.
> 
> Ok, so "DISPLAY=localhost:0" preceeds the program call.

This will probably work but in "man 5 crontab" they suggest setting your
environment variables on a separate line.

  DISPLAY=:0.0
  0 12 * * *  xwindowsprogram

-- 
Jim




More information about the Kclug mailing list