Skip to content

Instantly share code, notes, and snippets.

@jadedgnome

jadedgnome/copyPBar.sh

Forked from dkavraal/copyPBar.sh
Last active Aug 29, 2015
Embed
What would you like to do?
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
You can’t perform that action at this time.