Here is a bash ping script that will check uptime

```
#!/bin/bash

# Set the server IP address or hostname
SERVER="example.com"

# Ping the server and capture the output
OUTPUT=$(ping -c 1 $SERVER)

# Check if the ping was successful
if [ $? -eq 0 ]; then
  # If the ping was successful, extract the uptime from the output
  UPTIME=$(echo "$OUTPUT" | grep "uptime" | awk '{print $5}' | sed 's/,//')

  # Print the uptime to the console
  echo "Server is up. Uptime: $UPTIME"
else
  # If the ping was unsuccessful, send an email notification
  echo "Server is down. Sending email notification..."
  echo "Server is down. Uptime: N/A." | mail -s "Server Down" user@example.com
fi
```
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence