From: Yuriy <yuriy@telsycom.ru> To: community@altlinux.ru Subject: Re[2]: [Comm] безбуфферный ввод/вывод Date: Fri, 25 Jul 2003 14:07:00 +0400 Message-ID: <38274921515.20030725140700@telsycom.ru> (raw) In-Reply-To: <20030725084105.GE9686@kadath.office.spb.ramax.ru> Здравствуйте Igor, Friday, July 25, 2003, 12:41:05 PM, you wrote: IH> у вас часто IH> $ tar cvf some_file | gzip >some.tar.gz IH> теряет данные ? Пример не удачный по следующей причине. Cниффер отслеживает обмен данными с некоторым проложением. Если данные помещаются в буфер они передаются в "|" и далее в дескриптор SORCE программы. Если данных недостатояно для заполнения буфера в программу они попадут только после поступления следующих данных от пользователя и заполнения буффера, если при этом пользователь не будет вводить никаких командр ,то эти данные вообще икогда в программу не попадут. IH> $| = 1; вам в руки Спасибо только причем здесь "$|" ??? IH> perlvar (1) Тоже самое. IH> * Yuriy <yuriy@telsycom.ru> [030725 12:18]: >> Привет всем ! >> Есть задача по обработке данных со снифера, >> которые передаются через: >> #!/usr/bin/perl -w >> >> open(SOURCE,"/opt/M*S/bin/some_sniffer |")||die "$!"; >> >> программе на Perl для человеческого представления >> Проблема заключена в буфферизации данных которые передаются >> через "|". Когда данные поступают, как я предполагаю, по мере >> наполнения буффера.Соответственно часть данных будет теряться. >> Можно ли изменить размер буффера в системе ? >> >> >> -- >> Best regards, >> Yuriy mailto:yuriy@telsycom.ru -- Best regards, Yuriy mailto:yuriy@telsycom.ru
next prev parent reply other threads:[~2003-07-25 10:07 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-07-25 8:18 Yuriy 2003-07-25 8:35 ` Maxim.Savrilov 2003-07-25 10:07 ` Yuriy [this message] 2003-07-25 10:12 ` Re[3]: " Yuriy
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=38274921515.20030725140700@telsycom.ru \ --to=yuriy@telsycom.ru \ --cc=community@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