[Tutor] command counter

Bo Morris crushed26 at gmail.com
Sat Sep 6 00:55:54 CEST 2014


Here is the shell script I am trying to recreate in python. Sorry for not
posting this with my other emails...I am a bit off today.


restart_count=10
count=10
restart=5

while ((count--)); do
avconv -v verbose -re -analyzeduration 0 | ./bmdplay -m 2 -f pipe:0
echo "----Retry----"

if [[ $count = 1 ]] && [[ $restart != 1 ]]; then

sleep 10


((restart--))
count=$restart_count
fi

done

echo "Gave up"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140905/cd659acd/attachment.html>


More information about the Tutor mailing list