ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Yuriy <yuriy@telsycom.ru>
To: homyakov@ramax.spb.ru
Cc: community@altlinux.ru
Subject: Re[3]: [Comm] безбуфферный ввод/вывод
Date: Fri, 25 Jul 2003 14:12:35 +0400
Message-ID: <113275256078.20030725141235@telsycom.ru> (raw)
In-Reply-To: <38274921515.20030725140700@telsycom.ru>



Здравствуйте Igor,

Y> 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



      reply	other threads:[~2003-07-25 10:12 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   ` Re[2]: " Yuriy
2003-07-25 10:12     ` Yuriy [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=113275256078.20030725141235@telsycom.ru \
    --to=yuriy@telsycom.ru \
    --cc=community@altlinux.ru \
    --cc=homyakov@ramax.spb.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