おそらくフォームを介していくつかのパラメーターを渡すCGIシェルスクリプトを実行し、ポップアップウィンドウまたはHTMLフォームコードが何であれ、同じページにスクリプトの結果を表示する必要があります
<form method="get" action="/cgi-bin/cgi_try.sh" >
<input type="text" name="ip" />
<input type="submit" value="PING"/>
私のシェルスクリプトは次のようになります
#!/bin/bash
echo "Content-type: text/html"
echo ""
echo ""
echo "<html>"
echo "<head>"
echo "<title>PING</title>"
echo "</head>"
echo "<body>"
ip=`echo $QUERY_STRING | cut -d '=' -f2`
if ping -c1 $ip > /dev/null
then
echo "ALIVE"
else
echo "DEAD"
fi
echo "</body>"
echo "</html>"
exit 0
私が必要としているのは、フォームと同じページに ping の結果を表示することです