http://qs321.pair.com?node_id=1082344


in reply to CGI - run script without waiting

See this:
Managing a long running server side process using CGI