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"
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to