Считаете, что Ubuntu недостаточно дружелюбна к новичкам? Помогите создать новое Руководство для новичков!
0 Пользователей и 1 Гость просматривают эту тему.
man traceroute
$ wget "http://status.icq.com/online.gif?icq=1234567&img=2"--2011-05-16 15:19:48-- http://status.icq.com/online.gif?icq=1234567&img=2Resolving proxy.*****... ******Connecting to proxy.****|****|:3128... connected.Proxy request sent, awaiting response... 302 Moved TemporarilyLocation: /2/online2.gif [following]--2011-05-16 15:19:48-- http://status.icq.com/2/online2.gifConnecting to proxy.****|*******|:3128... connected.Proxy request sent, awaiting response... 200 OKLength: 285 [image/gif]Saving to: `online.gif?icq=1234567&img=2'100%[===================================================================================>] 285 --.-K/s in 0.001s 2011-05-16 15:19:48 (195 KB/s) - `online.gif?icq=1234567&img=2' saved [285/285]
$ wget -d "http://status.icq.com/online.gif?icq=1234567&img=2"DEBUG output created by Wget 1.12 on linux-gnu.--2011-05-16 15:20:16-- http://status.icq.com/online.gif?icq=1234567&img=2Resolving proxy.*********... *************Caching proxy.********** => **********Connecting to proxy.********|**********|:3128... connected.Created socket 3.Releasing 0x099c3ea0 (new refcount 1).---request begin---GET http://status.icq.com/online.gif?icq=1234567&img=2 HTTP/1.0User-Agent: Wget/1.12 (linux-gnu)Accept: */*Host: status.icq.com---request end---Proxy request sent, awaiting response... ---response begin---HTTP/1.0 302 Moved TemporarilyDate: Mon, 16 May 2011 11:20:18 GMTLocation: /2/online2.gifContent-Length: 264Content-Type: text/html; charset=iso-8859-1X-Cache: MISS from post2.*************X-Cache-Lookup: MISS from post2*********:3128Connection: close---response end---302 Moved TemporarilyLocation: /2/online2.gif [following]Closed fd 3--2011-05-16 15:20:16-- http://status.icq.com/2/online2.gifFound proxy.********** in host_name_addresses_map (0x99c3ea0)Connecting to proxy.*************|*************|:3128... connected.Created socket 3.Releasing 0x099c3ea0 (new refcount 1).---request begin---GET http://status.icq.com/2/online2.gif HTTP/1.0User-Agent: Wget/1.12 (linux-gnu)Accept: */*Host: status.icq.com---request end---Proxy request sent, awaiting response... ---response begin---HTTP/1.0 200 OKDate: Mon, 16 May 2011 11:18:38 GMTLast-Modified: Tue, 11 Feb 2003 17:12:50 GMTETag: "53588-11d-327c6880"Accept-Ranges: bytesContent-Length: 285Content-Type: image/gifAge: 100X-Cache: HIT from post2.*************X-Cache-Lookup: HIT from post2.************:3128Connection: close---response end---200 OKLength: 285 [image/gif]Saving to: `online.gif?icq=1234567&img=2.1'100%[===================================================================================>] 285 --.-K/s in 0s Closed fd 32011-05-16 15:20:16 (31.1 MB/s) - `online.gif?icq=1234567&img=2.1' saved [285/285]
ICQ_STATUS="`curl http://status.icq.com/online.gif?icq=номераськи 2>/dev/null | grep '<p>' | cut -b45-45`"
curl http://status.icq.com/online.gif?icq=1234567 | gawk '/moved/{s=gensub(/.*\/0\/online([^\.]*).*/,"\\1","g"); print s }'
curl http://status.icq.com/online.gif?icq=1234567 | gawk '/moved/{s=gensub(/.*\/0\/online([^\.]*).*/,"\\1","g"); print (s=="1"?"offline":"online") }'
Страница сгенерирована за 0.036 секунд. Запросов: 22.