[SUMMARY] Can you run Xapp from Cron?
Original question was whether you can run an X application from cron,
when noone is logged in (and hence there is no X server running). I
knew this was a shot in the dark, but I had to try...
General concensus was that you need an X server running; either the
local one, or you can direct the output to a remote X server using
the DISPLAY environment variable (this would have to be included in
the script run by cron). Of course if you use a remote X server then
that system must accept X requests from the local system (set up using
"xhost" command on the remote system).
Jochen Bern mentioned a "null" X11 Display being available with newer
X11 versions (X11R6 and up). I haven't had time to look into this.
peter winterflood <email@example.com>
firstname.lastname@example.org (Guy Harris)
Sean Ward <email@example.com>
John Justin Hough <firstname.lastname@example.org>
Jochen Bern <bern@TI.Uni-Trier.DE>
"Jeffrey K. Pado" <email@example.com>
Richard Radeck <firstname.lastname@example.org>
email@example.com (Fletcher Glenn)
Robert Bonomi <firstname.lastname@example.org>
> -----Original Message-----
> From: David Foster [SMTP:email@example.com]
> Posted At: Wednesday, April 22, 1998 9:08 PM
> Posted To: admin
> Conversation: [Q] Can you run Xapp from Cron?
> Subject: [Q] Can you run Xapp from Cron?
> Is it possible to run an X application using CRON, when noone
> is logged in on the machine (Solaris 2.5)?
> We have scripts that run DBMSCOPY in batch mode to convert a *long*
> list of files, and we would like to use CRON, but of course DBMSCOPY
> is an X application.
> I've checked the FAQ, and the Sun Manager's archives, as well as
> several reference books, but haven't found anything. I know this
> is probably a dumb question, but if it is possible that would be
> worth the embarassment.
----- End Included Message -----
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
firstname.lastname@example.org Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:39 CDT