I use System(""), but the problem with this is that when I make the system call, it doesn't complete before the next statement is executed. I tried forking the process and waiting until it was over, but that caused some errors with the call from the browser. Is there another to go about this.

Does anyone have any experience with making a system call in a cgi script that is called from a browser?