Sure! Here's a simple Bash script that you can use to ping a website or IP address and check its uptime:

bash

#!/bin/bash

HOST="google.com" # Replace with the website or IP address you want to ping
COUNT=5           # Replace with the number of times you want to ping the host

ping -c $COUNT $HOST > /dev/null

if [ $? -eq 0 ]
then
    echo "Host is up"
else
    echo "Host is down"
fi

To use the script, save it to a file (e.g., ping.sh) and make it executable by running chmod +x ping.sh. Then, run the script using ./ping.sh.

You can modify the HOST and COUNT variables to change the host and number of pings respectively. The script uses the ping command to send ICMP packets to the host and checks the exit code to determine whether the host is up or down. If the exit code is 0, the host is up; otherwise, it's down. The output of the script will indicate whether the host is up or down.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence