아래 코드는 외국어에서는 작동하지 않지만 영어 단어에서는 완벽하게 작동합니다. Topsy, Twitter, Curl, Bash
let int=1244764800
let start=86400+$int
let l=86400*7
let end=$int-$l
for ((k = $start ; k > $end ; k=k-3600)) do
for ((j = 1 ; j < 11 ; j++)) do
let mintime=$k-3600;
let maxtime=$k
searchwords="سلام"
#echo $maxtime
curl "http://otter.topsy.com/search.json?q="${searchwords}"&page="$j"&perpage=100&mintime="${mintime}"&maxtime="${maxtime}"&apikey=FAF7F2D0D8A143978CB7762CE35FCF99"
done
done
이
은 다음과 산출 :curl: (7) couldn't connect to host
curl: (7) couldn't connect to host
내가이 스크립트는 영어 단어와 함께 완벽하게 작동 반복,하지만 난 어떤 도움을 주셔서 감사 할 수 있도록 외국어로 이것을 실행해야 /지도! 고마워요 :)
감사합니다. 이것은 일했다 :) – user1011332