Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Apache: Logging: how-to pipe logs or logtoanothermachine(was Disk
- Date: Sun, 8 Sep 2002 11:12:38 -0400
- From: Viktor Pavlenko <vvp@example.com>
- Subject: Re: [tlug] Apache: Logging: how-to pipe logs or logtoanothermachine(was Disk
- References: <F166yDd3OJXsNQptgFr00000022@example.com><1031470505.12169.24.camel@example.com><15739.26268.212283.846293@example.com>
>>>>> "VP" == Viktor Pavlenko <vvp@example.com> writes: VP> $ perl -e 'select(STDOUT); $|=1; for (0..1000000) { print 1; sleep 1 && system("ls -l t.gz >> t") unless $_ % 200000; }' | gzip - > t.gz VP> And watch content of file t with tail -f from another. (You may need VP> to remove a couple of zeros above, my machine is very fast:) This is VP> what I see: VP> $ tail -f t VP> -rw-rw-r-- 1 vik vik 0 Sep 8 10:51 t.gz VP> -rw-rw-r-- 1 vik vik 0 Sep 8 10:51 t.gz VP> -rw-rw-r-- 1 vik vik 0 Sep 8 10:51 t.gz VP> Any ideas why? Because the resulting t.gz is very small. Replacing print 1 with print $_ makes it clear. Never mind... But isn't it fun ? :) Viktor
- Follow-Ups:
- [tlug] Re: Apache: Logging: how-to pipe logs or logtoanothermachine (was Disk
- From: Tobias Diedrich
- References:
- Re: [tlug] Apache: Logging: how-to pipe logs or logtoanothermachine (was Disk
- From: Jean-Christian Imbeault
- Re: [tlug] Apache: Logging: how-to pipe logs or logtoanothermachine(was Disk
- From: Bruno Raoult
- Re: [tlug] Apache: Logging: how-to pipe logs or logtoanothermachine(was Disk
- From: Viktor Pavlenko
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Apache: Logging: how-to pipe logs or logtoanothermachine(was Disk
- Next by Date: Re: [tlug] KMail and kinput2
- Previous by thread: Re: [tlug] Apache: Logging: how-to pipe logs or logtoanothermachine(was Disk
- Next by thread: [tlug] Re: Apache: Logging: how-to pipe logs or logtoanothermachine (was Disk
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links