Created
October 13, 2022 16:25
-
-
Save alcarraz/fcce48b7bfaddb2baf7c395267ed433c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# URL of the stream | |
url=$1 | |
# How long to record in seconds | |
length=$2 | |
# Where to store the recording | |
file=$3 | |
curl -s $url --retry 10 --retry-max-time 60 --max-time $length >> $file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment