ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Aleksey Avdeev <solo@solin.spb.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] [git update] packages/apache2: heads/master
Date: Mon, 18 Jun 2007 14:20:47 +0400
Message-ID: <46765C7F.1030503@solin.spb.ru> (raw)
In-Reply-To: <20070618102249.GA1523@basalt.office.altlinux.org>

Dmitry V. Levin пишет:
> On Mon, Jun 18, 2007 at 01:59:05PM +0400, Aleksey Avdeev wrote:
>> Dmitry V. Levin пишет:
>>> On Sun, Jun 17, 2007 at 12:40:58PM +0400, Aleksey Avdeev wrote:
>>>> Aleksey Avdeev пишет:
>>>>> Slava Semushin пишет:
>>>>>> 2007/6/17, Aleksey Avdeev <solo / altlinux.org>:
>>>>>> [...]
>>>>>>> -%_sbindir/a2chkconfig
>>>>>>> +%_sbindir/a2chkconfig 2>&1 >/dev/null
>>>>>> [...]
>>>>>>> -%_sbindir/a2chkconfig
>>>>>>> +%_sbindir/a2chkconfig 2>&1 >/dev/null
>>>>>> [...]
>>>>>>> -%_sbindir/a2chkconfig
>>>>>>> +%_sbindir/a2chkconfig 2>&1 >/dev/null
>>>>>> [...]
>>>>>>> -%_sbindir/a2chkconfig
>>>>>>> +%_sbindir/a2chkconfig 2>&1 >/dev/null
>>>>>> [...]
>>>>>>> -       %_sbindir/a2chkconfig
>>>>>>> +       %_sbindir/a2chkconfig 2>&1 >/dev/null
>>>>>> [...]
>>>>>>
>>>>>> Алексей, вы, наверное, хотели перенаправить вывод stderr и stdout в /dev/null?
>>>>>   Да.
>>>>>
>>>>>> В таком случае, если я не ошибаюсь, эта конструкция не будет работать
>>>>>> как вы ожидаете. Тут важно соблюсти порядок. (В данном случае надо
>>>>>>> /dev/null 2>&1)
>>>>>> Вот пример:
>>>>>>
>>>>>> [c0der@rock ~]$ (echo stdout; echo stderr >&2) 2>&1 >/dev/null
>>>>>> stderr
>>>>>> [c0der@rock ~]$ (echo stdout; echo stderr >&2) >/dev/null 2>&1
>>>>>> [c0der@rock ~]$
>>>>>   Спасибо. Сейчас обновлю...
>>>>   Проверил: %_sbindir/a2chkconfig >/dev/null 2>&1 -- непомогает... :-(
>>>> (Как и %_sbindir/a2chkconfig 2>/dev/null >/dev/null.)
>>> Алексей, конструкция ">/dev/null 2>&1" заведомо рабочая, в то время как
>>> "2>&1 >/dev/null" несёт совсем другой смысл.
>>   OK, похоже разница от меня ускользнула, в своё время...
>>
>>> Само по себе странно, конечно, что приходится давить весь вывод, но если
>>> вы решили это делать, то лучше это делать правильно.
>>   В данном случаи -- мне достаточно задавить вывод на stdout: слишком
>> многословный и неинформативный.
> 
> Если не надо давить stderr, тогда не надо его давить, оставьте ">/dev/null".

  Такое решение сейчас и тестирую.

-- 

С уважением. Алексей.




  reply	other threads:[~2007-06-18 10:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-17  6:56 ` Slava Semushin
2007-06-17  8:06   ` Aleksey Avdeev
2007-06-17  8:40     ` Aleksey Avdeev
2007-06-17  9:42       ` Grigory Batalov
2007-06-17  9:35         ` Aleksey Avdeev
2007-06-18  7:31       ` Dmitry V. Levin
2007-06-18  9:59         ` Aleksey Avdeev
2007-06-18 10:22           ` Dmitry V. Levin
2007-06-18 10:20             ` Aleksey Avdeev [this message]
2007-06-18 12:20           ` [devel] I: apache2-2.2.4-alt29 в Sisyphus и 4.0/branch (was: Re: [git update] packages/apache2: heads/master) Aleksey Avdeev

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=46765C7F.1030503@solin.spb.ru \
    --to=solo@solin.spb.ru \
    --cc=devel@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 Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

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


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