ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Andrey Savchenko <bircoph@altlinux.org>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] tee
Date: Wed, 19 Jan 2022 20:34:48 +0300
Message-ID: <20220119203448.bb0d2e75bf9c68823fe4a968@altlinux.org> (raw)
In-Reply-To: <20220119163658.GF30115@imap.altlinux.org>

[-- Attachment #1: Type: text/plain, Size: 760 bytes --]

On Wed, 19 Jan 2022 19:36:58 +0300 Michael Shigorin wrote:
> On Wed, Jan 19, 2022 at 04:49:40PM +0300, Vladimir Karpinsky wrote:
> > Можно ли как-то отправить в файл всё, что я вижу на терминале,
> > как в этом случае, так и в аналогичных, или это принципиально
> > невозможно? Заранее спасибо!
> 
> cmd 2>&1 | tee ...

Это не всегда будет работать. Если форкнутое приложение не просто
наследует дескрипторы, а будет что-то хитрое с ними делать, это
может не сработать. 

Best regards,
Andrew Savchenko

[-- Attachment #2: Type: application/pgp-signature, Size: 833 bytes --]

      parent reply	other threads:[~2022-01-19 17:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-19 13:49 Vladimir Karpinsky
2022-01-19 16:09 ` Andrey Savchenko
2022-01-19 16:36 ` Michael Shigorin
2022-01-19 16:57   ` Vladimir Karpinsky
2022-01-19 17:34   ` Andrey Savchenko [this message]

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=20220119203448.bb0d2e75bf9c68823fe4a968@altlinux.org \
    --to=bircoph@altlinux.org \
    --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