in reply to Bad File Descriptor

if you have a choice between IIS and Apache...use Apache. IIS has been progressively locked down more and more...processes started through IIS typically have problems opening/writing files and using pipes
the hardest line to type correctly is: stty erase ^H