11.5. Нужен cgi-скрипт для отслеживания доступности хоста.

    #!/bin/sh
    export PATH=/bin:/usr/bin:/usr/local/bin
    trap "" 2 3
    ulimit -c 0
    line=`head -1`
    line=`echo "$line" | cut -s -f2- -d= | hex2char | head -1 | valid N 40`
    if [ "$line" != "" ]; then
        echo -e "Content-type: text/html\n\n<HTML>\n<TITLE>Traceroute to
    $line</TITLE>\n"
        echo -e "<body>\n<h3>Traceroute to $line:</h3>\n<pre>\n"
        traceroute "$line" 2>&1
        echo -e "\n</pre>\n</body>\n</html>"
    else
        echo -e "Content-type: text/html\n\n<HTML>\n<TITLE>Error</TITLE>\n"
        echo -e "<body>\n<h3>ERROR: No target specified.</h3>\n"
        echo -e "\n</body>\n</html>"
    fi