"nginx -v" outputs is in stderr.

2016-02-17 Thread ZEUS-mgtGM KUJIRAI, Takahiro
Hello, Dounin! >Yes, this is by design. >See https://trac.nginx.org/nginx/ticket/592 for more details. I understood. And, I like stdout, I'll change source codes and use nginx. Thanks. Takahiro Kujirai @Zeus-Enterprise.Co.Ltd ___ nginx-devel

Re: "nginx -v" outputs is in stderr.

2016-02-17 Thread Maxim Dounin
Hello! 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

"nginx -v" outputs is in stderr.

2016-02-17 Thread Takahiro Kujirai
Hi all, This is Takahiro Kujirai. When I typed "nginx -v > /tmp/nginx.txt" on nginx 1.9.11, I found output is in stderr. --- [root@localhost ~]# nginx -v > /tmp/nginx.txt nginx version: nginx/1.9.11 [root@localhost ~]# [root@localhost ~]# nginx -v 2> /tmp/nginx.txt [root@localhost ~]# cat