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 [2023/01/28 11:17]
val [Web сервер на shell]
средства_программирования_shell [2023/03/14 07:30]
val [Целочисленный цикл (поиск хостов в подсети)]
Line 79: Line 79:
  
 ==== Целочисленный цикл (поиск хостов в подсети) ==== ==== Целочисленный цикл (поиск хостов в подсети) ====
 +
 +  * [[Утилита nmap#Ping диапазона адресов с verbose и debug]]
 +
 <​code>​ <​code>​
 $ cat test_ping.sh $ cat test_ping.sh
Line 392: Line 395:
  
 read request read request
-##echo "​$request"​ >> $log       # ​not work with keepalived+##echo "​$request"​ >> $log       # ​for educational demonstration
  
 filename="​${request#​GET }" filename="​${request#​GET }"
Line 404: Line 407:
 do do
   read -r header   read -r header
-##  echo "​$header"​ >> $log       # ​not work with keepalived+##  echo "​$header"​ >> $log       # ​for educational demonstration
   [ "​$header"​ == $'​\r'​ ] && break;   [ "​$header"​ == $'​\r'​ ] && break;
-  ​[ "​$header"​ == $''​ ] && break; ​   # for STDIN/​STDOUT ​test+##  ​[ "​$header"​ == $''​ ] && break; ​   # for STDIN/​STDOUT ​educational demonstration
 done done
  
Line 489: Line 492:
         PROG_THBIRD:​ "Mail client Thunderbird"​ "​$(on_off PROG_THBIRD "​$GP_OP_FILE"​)"​ \         PROG_THBIRD:​ "Mail client Thunderbird"​ "​$(on_off PROG_THBIRD "​$GP_OP_FILE"​)"​ \
         ROLE_ZAB_AG:​ "​Zabbix Agent" "​$(on_off ROLE_ZAB_AG "​$GP_OP_FILE"​)"​ \         ROLE_ZAB_AG:​ "​Zabbix Agent" "​$(on_off ROLE_ZAB_AG "​$GP_OP_FILE"​)"​ \
-        ​ROLE_OVPN_CL: "​OpenVPN Client"​ "​$(on_off ​ROLE_OVPN_CL ​"​$GP_OP_FILE"​)"​ \+        ​ROLE_OVPN1_CL: "​OpenVPN Client"​ "​$(on_off ​ROLE_OVPN1_CL ​"​$GP_OP_FILE"​)"​ \
 2>"​$TEMP_FILE"​ 2>"​$TEMP_FILE"​
  
средства_программирования_shell.txt · Last modified: 2024/05/10 17:17 by val