Bu bash ping skripti ish vaqtini tekshiradi ``` #!/bin/bash # Serverning IP manzilini yoki host nomini o'rnating SERVER="example.com" # Serverni ping qiling va chiqishni oling OUTPUT=$(ping -c 1 $SERVER) # Agar ping muvaffaqiyatli bo'lgan bo'lsa, ping muvaffaqiyatli bo'lganligini tekshiring UPTIME=$(echo "$OUTPUT" │ grep "uptime" │ awk '{print $5}' │ sed's/,//') # Uptime-ni konsol echosiga bosib chiqaring "Server is up. Uptime: $UPTIME" # aks holda ping muvaffaqiyatsiz bo'lgan bo'lsa, "Server is down... Sending echo notification" elektron pochta xabarini yuboring "Server is down... Sending
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence