Busybox httpd sends output of stderr to the Website
Bob Dunlop
bob.dunlop at xyzzy.org.uk
Tue Mar 21 16:54:49 UTC 2017
> My question: How can I tell the httpd to NOT redirect stdout to the website?
Or you could tell your CGI programs not to generate data on stderr.
In your example for instance.
#!/bin/sh
# Redirect stderr, not required in production
exec 2>/dev/null
echo "Content-Type: text/plain"
echo "Expires: 0"
echo
echo "Hello World!"
echo "You should not see this text in your Browser" >&2
HTH
--
Bob Dunlop
More information about the busybox
mailing list