And had to use 'setsid' or the program dies whenever the web server goes down.
In reply to Re^6: run a background process by Anonymous Monk in thread run a background process by Anonymous Monk