"nginx -v" outputs is in stderr.
mdounin at mdounin.ru
Wed Feb 17 14:27:13 UTC 2016
On Wed, Feb 17, 2016 at 05:07:12PM +0900, Takahiro Kujirai wrote:
> This is Takahiro Kujirai.
> When I typed "nginx -v > /tmp/nginx.txt" on nginx 1.9.11, I found output
> is in stderr.
> I think "stdout" is good, not "stderr", is this the design?
Yes, this is by design.
See https://trac.nginx.org/nginx/ticket/592 for more details.
More information about the nginx-devel