21 lines
676 B
Bash
Executable File
21 lines
676 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "Starting: Sending a request and playing sound every second..."
|
|
for i in {60..1}; do
|
|
# Send HTTP request to the server endpoint
|
|
curl -s "https://sepidehgold.com/server/refPricer" > /dev/null
|
|
|
|
# Play system sound (Linux or macOS)
|
|
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
|
beep || echo -e "\a" # Use 'beep' if installed, fallback to terminal bell
|
|
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
|
say "Request sent" # Text-to-speech on macOS
|
|
else
|
|
echo -e "\a" # Basic terminal bell (works on most systems, including Windows terminals)
|
|
fi
|
|
|
|
# Wait 1 second
|
|
sleep 1
|
|
done
|
|
|
|
echo "Time's up: 60 seconds completed." |