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: Sun, 17 Jun 2007 12:06:24 +0400
Message-ID: <4674EB80.6080208@solin.spb.ru> (raw)
In-Reply-To: <75e139a00706162356m1c203e6el3186aa2af0c3cf39@mail.gmail.com>

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 ~]$

  Спасибо. Сейчас обновлю...

-- 

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




  reply	other threads:[~2007-06-17  8:06 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 [this message]
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
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=4674EB80.6080208@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