ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Slava Semushin" <slava.semushin@gmail.com>
To: "ALT Devel discussion list" <devel@lists.altlinux.org>
Subject: Re: [devel] [git update] packages/apache2: heads/master
Date: Sun, 17 Jun 2007 13:56:30 +0700
Message-ID: <75e139a00706162356m1c203e6el3186aa2af0c3cf39@mail.gmail.com> (raw)
In-Reply-To: <20070617042110.6485B19FC009@ssh.git.local.altlinux.org>

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


-- 
+ Slava Semushin | slava.semushin @ gmail.com
+ ALT Linux Team | php-coder @ altlinux.ru

       reply	other threads:[~2007-06-17  6:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-17  6:56 ` Slava Semushin [this message]
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
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=75e139a00706162356m1c203e6el3186aa2af0c3cf39@mail.gmail.com \
    --to=slava.semushin@gmail.com \
    --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