Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Dec 9th, 2013  |  syntax: None  |  size: 0.55 KB  |  hits: 59  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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