thanks Massimo, that's the solution, works under windows and probably will also work under Linux, I'll try. cheers, Stef
On 24-08-2010 04:43, mdipierro wrote: > It does not hang. It starts the server. The server blocks. If you want > to start the server is a new thread: > > import os, sys, thread, time > filepath = r'P:/Web2Py/web2py_src/web2py' > sys.path.append ( filepath ) > os.chdir ( filepath ) ## <== absolutely necessary to > get the version number !!! > from gluon.main import HttpServer > server = HttpServer ( password='xxx' ) #ip,port,admin_password) > thread.start_new_thread(server.start,(,)) > print 'piep' > time.sleep(10000) > > will print piep but will only live for 10000. It is up to you to > handle concurrency.

