parallel-ized
This commit is contained in:
parent
b5d51fb79c
commit
5f11c45ed7
1 changed files with 5 additions and 2 deletions
|
@ -1,8 +1,11 @@
|
|||
#!/bin/bash
|
||||
N=2
|
||||
cd $HOME/gallery-dl/itaku
|
||||
for i in *; do
|
||||
echo ">> $i"
|
||||
gallery-dl --abort 3 --sleep 2 https://itaku.ee/profile/$i/gallery
|
||||
sleep 15
|
||||
(gallery-dl --abort 3 --sleep 2 https://itaku.ee/profile/$i/gallery) &
|
||||
if [[ $(jobs -r -p | wc -l) -ge $N ]]; then
|
||||
wait -n
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue