Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Rerouting STDERR to STDOUT
I have a CGI which was working fine the day before yesterday, and is now not working at all. I'm getting the message 'Script produced no output' when I run, which means it got a syntax error and sent the message to STDERR, the logs of which I don't have access to. Or if I do, I can't find them. I'm sure if I could work out what the probem is I could get a solution, but I need it to send the message directly to the browser via STDOUT for that to happen. So how would I reroute it? I'm pretty sure it has something to do with pipes, but I don't understand them at all.
0 · ·