alias cp='rsync -p --progress' | |
# copy with progressbar |
#!/bin/bash | |
PWD=~/Downloads | |
ls > /dev/null # if any case. avoid to kill self | |
while true; do | |
/usr/bin/aria2c -c -x14 -s14 http://... | |
PID=$! | |
echo $PID | |
sleep 25 | |
while [[ $( ps -ef | grep -e aria2c -e "##############" | grep -v "#####" | wc -l ) > 0 ]]; do | |
echo "waiting aria to die..." | |
kill $PID | |
sleep 3 | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment