Guest User

Untitled

a guest
Dec 9th, 2013
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #!/bin/bash # USAGE ./script.sh $start_pos
  2. from=$1
  3. to=$(($from + 1000))
  4.  
  5. for ((t= $(($from));t<$to;t++)) ; do
  6. echo -ne "$t "
  7. curl -s http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=28660`printf %05d $t`001 | grep hubworld -q
  8. if [ "$?" == "0" ] ; then
  9. echo 28660`printf %05d $t`001 >> log_ok
  10. echo 28660`printf %05d $t`001 ok
  11. else
  12. echo fail
  13. fi
  14. done
Advertisement
Add Comment
Please, Sign In to add comment