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/06/30 15:11]
val [Web сервер на shell]
средства_программирования_shell [2022/08/17 16:17]
val [Web сервер на shell]
Line 377: Line 377:
  
 ==== Web сервер на shell ==== ==== Web сервер на shell ====
 +
 +  * [[Сервис HTTP]]
  
 <​code>​ <​code>​
Line 412: Line 414:
   echo -e "​Content-Type:​ text/​html;​\r"​   echo -e "​Content-Type:​ text/​html;​\r"​
   echo -e "​\r"​   echo -e "​\r"​
-  echo -e "<​h1>​$url Not Found in container `hostname`</​h1>"​+  ​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>"​
 fi fi
 </​code>​ </​code>​
средства_программирования_shell.txt · Last modified: 2024/04/11 12:41 by val