Well, I finally got it. If I put my system call in a perl script, and call that from the .cgi script (closing STDOUT along the way), and then do the fork/exec dance, everything worked. Seems like the really long way to go to get where I needed to go, but whatever works. I will need to polish this turd up before I step in it again, but at least it is functional.