Alf, then you are in for some learning. The technical term for a system as you describe is "headless". In order to test headless QCAD you do not need to set up a computer in this way, all you have to do in a terminal is to clear the DISPLAY variable from the environment, before launching QCAD:
- Code: Select all
qcad3 -autostart scripts/date.js
This will produce an error: "qcad-bin: cannot connect to X server", which means, that qcad cannot be run on a headless system, whithout help from Andrew, that is. Start your research here: http://developer.qt.nokia.com/search/tag/headless
Especially, QCAD would need a switch to delay initialization of the X server connection. The question is, how much of the CAD and scripting functionality will be available without that connection. This would also be good for turnaround time, between calling the app and receiving results.
Very likely, there are ways around, eg with xvfb. Refer to this blog post as an example: http://blog.kagesenshi.org/2007/06/runn ... using.html
- keep in mind, that if you process requests from anywhere on the web, a setup like this needs to be secured against malicious uses.