tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: Accessing X server in cron job
@ 1998-12-09 15:44 kevin
  0 siblings, 0 replies; only message in thread
From: kevin @ 1998-12-09 15:44 UTC (permalink / raw)
  To: tru64-unix-managers


Thanks for the quick reply from Andrew Leahy 
<A.Leahy@cit.nepean.uws.edu.au>

He suggested the X Virtual Frame Buffer (Xvfb).  
I have seen this on Suns before, but didn't know 
there was one for Digital Unix.  It is, in fact, 
available as an optionally installed software 
subset and I will try it out in the very near future.

--Kevin Tyle <kevin@meso.com>
MESO, Inc.

------- Original Message: ---------

I am trying to run a script via cron that needs
to connect to the X server on the same machine that the
cron job runs on (The script, among other things, creates
GIF files using a software package whose GIF driver is actually
hacked from an x-window driver, hence the need for a connection
to an X-server).  When run interactively, all is fine as long
as the DISPLAY variable is properly set.  However, from cron,
even if I set the DISPLAY correctly (e.g. "foo:0.0") in the script,
when the cron job is run, the connection to the X-server fails 
with the following message:

Xlib: connection to "foo:0.0" refused by server
Xlib: Client is not authorized to connect to Server

The only way it will work is if someone is directly logged into the
console, and I issue the command "xhost foo".

Is there any way I can run the cron job without having to be logged
into to the console and running xhost?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-12-09 15:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-12-09 15:44 SUMMARY: Accessing X server in cron job kevin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox