vine-users ML アーカイブ



[vine-users:066256] Re: ANNOUNCE: errata of apache and mod_ssl (Vine-2.x)

  • From: yoshinobu syouzi <yoshino@xxxxxxxxxxxxxx>
  • Subject: [vine-users:066256] Re: ANNOUNCE: errata of apache and mod_ssl (Vine-2.x)
  • Date: Mon, 14 Jun 2004 19:18:17 +0900
こんにちわ、よしのぶです。

池田さんのメールより [vine-users:066253]

>> 具体的には、cgiからファイルディスクリプタがうまく開けないことがある
>> ようです。
>>
>> #!/bin/sh
>> grep -v '<meta hoge' $Hoge|tee /dev/fd/3
>> 
>> test_val=`grep -c '<meta END' /dev/fd/3`
>> 
>> 上記のような感じで、test_valが、0か1になることを期待してるんですが、
>> 1.3.27-0vl6だとなぜか空文字列になってしまいます。ちなみに、Seedの
>> 1.3.31-0vl1では大丈夫のようです。
>
> CGI スクリプトを実行したときに Apache HTTP Server が何かエラーを
> 出力していないでしょうか。
> tail -f /var/log/httpd/error_log などしてご確認お願いします。

Apacheのエラーは、

tee: /dev/fd/3: No such file or directory
grep: /dev/fd/3: No such file or directory

となっているようです。 

ファイルに書き出したくないので、/dev/fdを使っていたのですが、
検討してみます。ご指摘ありがとうございました。

-- 
よしのぶ
yoshino@xxxxxxxxxxxxxx