- #!/bin/bash # USAGE ./script.sh $start_pos
- from=$1
- to=$(($from + 1000))
- for ((t= $(($from));t<$to;t++)) ; do
- echo -ne "$t "
- curl -s http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=28660`printf %05d $t`001 | grep hubworld -q
- if [ "$?" == "0" ] ; then
- echo 28660`printf %05d $t`001 >> log_ok
- echo 28660`printf %05d $t`001 ok
- else
- echo fail
- fi
- done