ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: kharpost <kharpost@rambler.ru>
To: Community@lists.altlinux.org
Subject: [Comm] код ошибки wget
Date: Wed, 15 Feb 2006 18:20:15 +0300
Message-ID: <016680633.20060215182015@rambler.ru> (raw)

Hello Community,

Как узнать код ошибки wget? Как из скрипта узнать причину ошибки?

[dima@server dima]$ wget -P /tmp http://www.mult.ru/img/comics/58_c33d.jpg; echo
$?
--15:18:55--  http://www.mult.ru/img/comics/58_c33d.jpg
           => `/tmp/58_c33d.jpg.4'
Преобразование адреса www.mult.ru... сделано.
Установка соединения с www.mult.ru[194.67.27.206]:80... соединились.
Запрос HTTP послан, ожидание ответа... 200 OK
Длина: 60,379 [image/jpeg]

100%[====================================>] 60,379         7,15K/s    ETA 00:00

15:19:04 (7,15 KB/s) - `/tmp/58_c33d.jpg.4' сохранен [60379/60379]

0
Все выполнилось без ошибок, код возврата =0. Это меня устраивает.
[dima@server dima]$ wget -P /tmp http://www.mult.ru/img/comics/58_c331d.jpg;
echo $?
--15:20:38--  http://www.mult.ru/img/comics/58_c331d.jpg
           => `/tmp/58_c331d.jpg'
Преобразование адреса www.mult.ru... сделано.
Установка соединения с www.mult.ru[194.67.27.206]:80... соединились.
Запрос HTTP послан, ожидание ответа... 404 Not Found
15:20:38 ОШИБКА 404: Not Found.

1
Сказал, что произошла ошибка. Какая именно?
[dima@server dima]$ wget -P /tmp http://downloads.abuki.apvs.ru/Balzak%20O./Balzak_O_\(Evgenija_Grande\)\(128kbps\).rar;
echo $?
--15:23:12--  http://downloads.abuki.apvs.ru/Balzak%20O./Balzak_O_(Evgenija_Grande)(128kbps).rar
           => `/tmp/Balzak_O_(Evgenija_Grande)(128kbps).rar.1'
Преобразование адреса downloads.abuki.apvs.ru... сделано.
Установка соединения с downloads.abuki.apvs.ru[83.222.9.16]:80... соединились.
Запрос HTTP послан, ожидание ответа... 503 Service Temporarily Unavailable
15:23:12 ОШИБКА 503: Service Temporarily Unavailable.

1



                 reply	other threads:[~2006-02-15 15:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=016680633.20060215182015@rambler.ru \
    --to=kharpost@rambler.ru \
    --cc=Community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git