1
cgicコードでroute -nを呼び出そうとしていますが、popenはnullを返します。私は単純なCコードで試して、それは動作しますが、私はそれをcgiに入れてnullを返します。cgiのコール・ルート-n
printf("Content-type: text/html\r\n");
printf("\r\n");
....
..
stream = popen("route -n", "r");
while (fgets(buffer, 100, stream) != NULL)
{........}
whileループに入りません。私は "cat" "netstat"などと呼ぶことができますが、route -nは動作しません。
ご返信ありがとうございます。できます。 – brknl