(01 Mar 2019, 18:01 )Like Ra Wrote:(01 Mar 2019, 16:28 )occorics Wrote:Code:while [ $(pgrep -c wget) -gt 5 ]; do
sleep 1s
done
I take it you run several scripts in parallel, right? Otherwise (for one blog only) I would add an '&' at the end of the 'wget' line:
Code:wget -P "$IMAGE_DIR" -nc -b "$PHOTO"&
yes, you are right. I had a list of like 100 tumblrs that i was checking. And I'm running similar scripts for other sites, too...