From: "Peter V. Saveliev" <peet@infosite.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] geometry
Date: Fri Sep 14 17:32:25 2001
Message-ID: <3BA20830.D0E830DB@infosite.ru> (raw)
In-Reply-To: <3BA203F4.2B2160C0@zmail.ru>
cornet wrote:
> Michael Shigorin wrote:
> >
> > On Fri, 14 Sep 2001, A. Mamonov wrote:
> >
> > > Подскажите, пожалуйста, где прописать геометрию окошек нетскейпа,
> > netscape --help 2>&1 | grep geometry
> ^^
> Давно хочу спросить: а что означает сей замечательный символ "&1"
> ??
> --
> ******** FIRE & STEEL ********
Есть три стандартных дескриптора файла, с которыми так или иначе работают
все программы. Здесь - 1 - поток вывода, 2 - поток ошибок. Часто поток
ошибок (STDERR) ипользуется также для вывода хелпа и прочего, так как не
буферизуется и выводится без задержки. Поток STDOUT, 1, по умолчанию
буферизуется и используется для всяких муторных затей с большим
количеством информации.
В bash с потоками можно работать. Скажем, STDOUT направить в один файл, а
STDERR - в другой: ./script 1>file.raz 2>file.dva.
А можно оба направить в одно место :) ./script >file.tri 2>&1. Часто это
можно использовать, чтобы отвязать программу от терминала (дабы не
заполучить сигнала TERM по выходу из сессии): ./script >/dev/null 2>&1
Это зовут слиянием потоков.
--
Петр.
next prev parent reply other threads:[~2001-09-14 17:32 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-13 15:16 [mdk-re] VESA frame buffer Pavel Stupin
2001-09-13 18:06 ` Peter V. Saveliev
2001-09-13 18:35 ` Viacheslav Kaloshin
2001-09-14 5:31 ` [mdk-re] geometry A. Mamonov
2001-09-14 17:01 ` Michael Shigorin
2001-09-14 17:15 ` cornet
2001-09-14 17:20 ` Artem K. Jouravsky
2001-09-14 17:24 ` cornet
2001-09-14 17:26 ` Yuri Borunov
2001-09-14 17:32 ` Peter V. Saveliev [this message]
2001-09-17 12:58 ` A. Mamonov
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=3BA20830.D0E830DB@infosite.ru \
--to=peet@infosite.ru \
--cc=mandrake-russian@altlinux.ru \
/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