This is a web application. You have to close these STDIO's to be able to disconnect your script from the web client. When you reopen them and send to NULL, I guess it won't allow you to do a PIPE for some reason. You have to run it from a web client to see the effect.