BASH_SRV Telegram 69
🧠 Bash: Проверка доступности нескольких хостов одним скриптом
Следишь за парком серверов? Этот скрипт покажет, какие машины "живы", а какие — нет 🖥️


#!/bin/bash

# Список IP или хостнеймов
HOSTS=("192.168.0.1" "google.com" "server.local")

for HOST in "${HOSTS[@]}"; do
if ping -c 1 -W 1 "$HOST" &> /dev/null; then
echo "[] $HOST доступен"
else
echo "[] $HOST недоступен"
fi
done


📌 Что делает:

* ping -c 1 -W 1 — один пинг с таймаутом в 1 секунду
* Выводит результат по каждому хосту

🔥 Можно запускать по крону или вручную, если нужно быстро понять, где беда.

👉@bash_srv
👍14



tgoop.com/bash_srv/69
Create:
Last Update:

🧠 Bash: Проверка доступности нескольких хостов одним скриптом
Следишь за парком серверов? Этот скрипт покажет, какие машины "живы", а какие — нет 🖥️


#!/bin/bash

# Список IP или хостнеймов
HOSTS=("192.168.0.1" "google.com" "server.local")

for HOST in "${HOSTS[@]}"; do
if ping -c 1 -W 1 "$HOST" &> /dev/null; then
echo "[] $HOST доступен"
else
echo "[] $HOST недоступен"
fi
done


📌 Что делает:

* ping -c 1 -W 1 — один пинг с таймаутом в 1 секунду
* Выводит результат по каждому хосту

🔥 Можно запускать по крону или вручную, если нужно быстро понять, где беда.

👉@bash_srv

BY Bash Советы




Share with your friend now:
tgoop.com/bash_srv/69

View MORE
Open in Telegram


Telegram News

Date: |

There have been several contributions to the group with members posting voice notes of screaming, yelling, groaning, and wailing in different rhythms and pitches. Calling out the “degenerate” community or the crypto obsessives that engage in high-risk trading, Co-founder of NFT renting protocol Rentable World emiliano.eth shared this group on his Twitter. He wrote: “hey degen, are you stressed? Just let it out all out. Voice only tg channel for screaming”. Although some crypto traders have moved toward screaming as a coping mechanism, several mental health experts call this therapy a pseudoscience. The crypto community finds its way to engage in one or the other way and share its feelings with other fellow members. Matt Hussey, editorial director at NEAR Protocol also responded to this news with “#meIRL”. Just as you search “Bear Market Screaming” in Telegram, you will see a Pepe frog yelling as the group’s featured image. Avoid compound hashtags that consist of several words. If you have a hashtag like #marketingnewsinusa, split it into smaller hashtags: “#marketing, #news, #usa. With the sharp downturn in the crypto market, yelling has become a coping mechanism for many crypto traders. This screaming therapy became popular after the surge of Goblintown Ethereum NFTs at the end of May or early June. Here, holders made incoherent groaning sounds in late-night Twitter spaces. They also role-played as urine-loving Goblin creatures.
from us


Telegram Bash Советы
FROM American