User Tools

Site Tools


средства_программирования_shell

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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/23 14:07]
val [Web сервер на shell]
Line 388: Line 388:
  
 read request read request
 +#echo $request >> $log
  
 while : while :
 do do
   read -r header   read -r header
 +#  echo $header >> $log
   [ "​$header"​ == $'​\r'​ ] && break;   [ "​$header"​ == $'​\r'​ ] && break;
 done done
Line 414: Line 416:
   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=$(awk '/32 host/ { print f } {f=$2}'​ /​proc/​net/​fib_trie | 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>​
Line 441: Line 444:
 </​code>​ </​code>​
  
 +  * [[Сервис INETD]]
 ==== Проверка ==== ==== Проверка ====
  
средства_программирования_shell.txt · Last modified: 2024/05/10 17:17 by val