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 19:09:06 +0300
Message-ID: <20220119190906.8f095925f12ced3349219fcb@altlinux.org> (raw)
In-Reply-To: <c24a5544-470c-2eef-2b09-b3e175f9c516@yandex.ru>
[-- Attachment #1: Type: text/plain, Size: 1555 bytes --]
Добрый день!
On Wed, 19 Jan 2022 16:49:40 +0300 Vladimir Karpinsky wrote:
> Добрый день!
>
> Я обычно при обновлении дублирую вывод apt в файл через tee -a, чтобы при необходимости можно было бы потом посмотреть,
> что и как обновилось. Но в файл идёт вывод только самого apt -- вывод от процессов, которые он вызывает в процессе
> работы, в этот файл не попадает: например, туда не попадает перезапуск служб, при обновлении ядра не попадает вывод от
> grub и т.д. Можно ли как-то отправить в файл всё, что я вижу на терминале, как в этом случае, так и в аналогичных, или
> это принципиально невозможно? Заранее спасибо!
Я в таких случаях делаю лог средствами того, где отображается
терминал. У меня это обычно внутри screen, так что достаточно C-a H
нажать.
Средствами самого шелл легко перенаправить весь stdin и stdout куда
угодно, но дублировать на экран просто так не получится.
Best regards,
Andrew Savchenko
[-- Attachment #2: Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2022-01-19 16:09 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 [this message]
2022-01-19 16:36 ` Michael Shigorin
2022-01-19 16:57 ` Vladimir Karpinsky
2022-01-19 17:34 ` Andrey Savchenko
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=20220119190906.8f095925f12ced3349219fcb@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