Martin Gregorie wrote: > - Xvnc (the program launched by the vncserver script) publishes an X > server interface for use by the application and provides a private > VNC service interface for accepting connections as well as an HTTP > server interface for the vnc applet. Right, you have to start it first. Or there is nothing to vnc into. VNC or not you still have to "daemonize" the process before you can disconnect. And vnc client connection is not scriptable. Anyway, it's hard to guess exactly what OP wanted. What his program does, why does he want to run it in background.