server scripts

This commit is contained in:
Stefen Auris 2022-11-26 17:38:29 -05:00
parent 2303b04e79
commit b5d51fb79c
7 changed files with 56 additions and 0 deletions

11
scripts/server_bin/update_fa.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
N=2
cd $HOME/gallery-dl/furaffinity
for i in */; do
echo ">> $i"
(gallery-dl --abort 3 --sleep 0-1 https://www.furaffinity.net/user/$i) &
if [[ $(jobs -r -p | wc -l) -ge $N ]]; then
wait -n
fi
done
wait