🐷

shells

2024/08/05に公開

shells

shells

#!/bin/bash

urls=(
    "https://coinmarketcap.com/ja/currencies/shuffle/"
)

while true; do
    url=${urls[$RANDOM % ${#urls[@]}]}
    sleep_time=$((600 + RANDOM % 1201))

    echo "Accessing: $url"
    curl -s "$url" > /dev/null

    echo "Sleeping for $sleep_time seconds..."
    sleep $sleep_time
done

shells

#!/bin/bash

urls=(
    "https://coinmarketcap.com/ja/currencies/shuffle/"
)

while true; do
    url=${urls[$RANDOM % ${#urls[@]}]}
    sleep_time=$((600 + RANDOM % 1201))

    echo "Accessing: $url"
    curl -s "$url" > /dev/null

    echo "Sleeping for $sleep_time seconds..."
    sleep $sleep_time
done

Discussion