MAX=$(nproc)
for i in {1..20}; do
{ pid=$BASHPID; echo "job $i" > "job_${pid}.log"; sleep 2; } &
while [ "$(jobs -rp | wc -l)" -ge "$MAX" ]; do sleep 0.1; done
done
wait
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)