This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
средства_программирования_shell [2022/09/14 10:56] val [Web сервер на shell] |
средства_программирования_shell [2022/09/22 11:44] val [Web сервер на shell] |
||
---|---|---|---|
Line 414: | Line 414: | ||
echo -e "Content-Type: text/html;\r" | echo -e "Content-Type: text/html;\r" | ||
echo -e "\r" | echo -e "\r" | ||
- | ip=$(awk '/32 host/ { print f } {f=$2}' <<< "$(</proc/net/fib_trie)" | sort -u | grep -v 127.0.0.1) | + | ip=$(cat /proc/net/fib_trie | awk '/32 host/ { print f } {f=$2}' | sort -u | grep -v 127.0.0.1) |
echo -e "<h1>$url Not Found in container $(hostname) with ip $ip</h1>" | echo -e "<h1>$url Not Found in container $(hostname) with ip $ip</h1>" | ||
+ | echo "ver 1.1" | ||
fi | fi | ||
</code> | </code> |