Skip to content

Instantly share code, notes, and snippets.

@tgeek77
Created December 22, 2022 08:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tgeek77/092f687aabcdc88ae6fa435dc1459ef6 to your computer and use it in GitHub Desktop.
Save tgeek77/092f687aabcdc88ae6fa435dc1459ef6 to your computer and use it in GitHub Desktop.
This is my bash wrappe around nntp-pull so that is automatically restarts if an article is missing.
#!/bin/bash
while getopts g: flag
do
case "${flag}" in
g) group=${OPTARG};;
esac
done
downloader() {
nntp-pull -v $group
}
until downloader; do
echo "restarting download" >&2
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment