OK, I'm currently writing a wevserver, which is almost done. My current implementation just executes the program/script and redirects the output into a file which is then transfered through the socket. This is admitedly not so hot.
My question is: are there any better ways to do this? Can I "bind" or "pipe" the webserver's child's output directly through my socket?
I'm on FreeBSD, but my program should run on Mac OS X as well. Thanks in advance.