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
|
#!/bin/bash
|
||||||
|
N=2
|
||||||
cd $HOME/gallery-dl/itaku
|
cd $HOME/gallery-dl/itaku
|
||||||
for i in *; do
|
for i in *; do
|
||||||
echo ">> $i"
|
echo ">> $i"
|
||||||
gallery-dl --abort 3 --sleep 2 https://itaku.ee/profile/$i/gallery
|
(gallery-dl --abort 3 --sleep 2 https://itaku.ee/profile/$i/gallery) &
|
||||||
sleep 15
|
if [[ $(jobs -r -p | wc -l) -ge $N ]]; then
|
||||||
|
wait -n
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue