Re: netstat -w 1 -I tun0 | cut -c 17-27 > bla funktioniert nicht...

From: Oliver Fromme <olli(at)secnetix.de>
Date: Wed, 14 Aug 2002 20:41:41 +0200 (CEST)

Bernd Walter <ticso(at)cicely5.cicely.de> wrote:
> On Wed, Aug 14, 2002 at 06:40:44PM +0200, Stefan Fischer wrote:
> > Sorry, das ich nochmals antworte. Wenn dem so ist, warum
> > funktioniert dann ein netstat -w 1 -I tun0 > /var/tmp/bla.dat, wobei
> > /var/tmp ein UFS-Filesystem ist? Es wird sofort die Datei
> > geschrieben...
> > Nur sobald das cut ins Spiel kommt, wird nicht sofort geschrieben.
>
> netstat macht nach jeder Zeile einen fsync(2).

fflush(3). Das ist eine reine stdio-Sache, das hat nichts
mit Syncing zu tun.

Gruß
   Olli

-- 
Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.
"All that we see or seem is just a dream within a dream" (E. A. Poe)
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Wed 14 Aug 2002 - 20:42:49 CEST

search this site