I have a python cgi script which looks like this:
Expand|Select|Wrap|Line Numbers
- logfile = open('xxxxxxxxx')
- print "Content-Type: text/html\n\n"
- .....
- print ' <meta http-equiv="refresh" content="15;url=%s" />' % myURL
- ......
- ### after printing the page
- os.system('python myfile.py &')
- logfile.write('END OF SCRIPT')
- logfile.close()
Is this problem caused by initialing the children job through os.system() ? Does any one know what I need to change to make the redirection work before background children processes finish?