Was this page helpful?

Facebook+1

    內容表格
    沒有標頭
    #!/bin/sh
    
    update_fb() {
      count=$(wget -O - "http://api.facebook.com/restserver.php?method=links.getStats&urls=https://www.facebook.com/TaipeiHackerspace" 2>/dev/null | grep -oP "(?<=\<total\_count\>).*?(?=\<\/total\_count\>)")
      
      echo "updating $count" 
      echo "$count." >&2
    }
    
    while [ 1 ] ; do 
      update_fb
      sleep 1
    done
    
    

     

    Save as fb.sh, then run as follows:
     

    
    $ ./fb.sh 2> /dev/ttyACM0
    Was this page helpful?
    標籤 (Edit tags)
    • No tags
    您必須 登入 才能發佈評論。
    Powered by MindTouch Core