Python CGI

Execute background process from CGI

Sample program:

#!/usr/bin/python
#coding: utf-8

import os

os.system( 'background_process > /dev/null &' )

The web browser waits until the stdout of the cgi process opens. The stdout of all cgi processes should be closed or execute the process with redirect to the /dev/null.