::: Paul ROBINS <[EMAIL PROTECTED]>
::: I have an intranet web server that allows our users to browse a
::: hierarchy of data files which represent graphs.  On selecting a data
::: file the server runs a kind of cgi executable that transforms the
::: file into a graph image and serves it up in an html page.  The
::: executable is ours and unfortunately cannot run without an X display
::: to generate a pixmap, which is where VNC comes in very handy :)

: Paul ROBINS <[EMAIL PROTECTED]>
: I'm a bit surprised that there have been no other responses :( Xvnc
: initally seems very nice to use as a virtual display for running in
: batch or cgi X11 apps that need a display.  It's a real shame that you
: can't control it a bit more :(

I'm not sure about the timeout issue you raise.  But perhaps if the
server was set to run a screensaver after an idle period, and the
screensaver you specify were a "terminate the server" script?  Hrm.  
As you can see, I haven't worked out the details, and I can see some
race conditions might arise, but it seems like a way to run arbitrary
code after an idle timeout. 

But more importantly, I'd suggest using Xvfb instead.  This task is
pretty much what it's specialized for, and it won't do any extra work
at all besides the X rendering on a bitmap.  It should be lightweight
enough you can just start it for each client request, or so I suspect.
If not, you'd still have collision and timeout issues just like Xvnc,
but they should be addressable the same ways.  And it's part of the
standard X.org release (and Xfree86 before it).

http://en.wikipedia.org/wiki/Xvfb

Note that, if you need to take a peek at the screen, or even use
mouse and keyboard at it for debugging, you can use x11vnc or x0vncserver
to treat it as a vnc server for debugging, without  having any vnc access
overhead during normal operation.

Just a thought.


Wayne Throop   [EMAIL PROTECTED]
_______________________________________________
VNC-List mailing list
[email protected]
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to