Re: filter script read STDIN from named pipe file

2010-03-23 Thread Kenneth Wolcott
Hi Uri; On Mon, Mar 22, 2010 at 15:50, Uri Guttman u...@stemsystems.com wrote: KW == Kenneth Wolcott kennethwolc...@gmail.com writes: KW Hi Harry; KW On Mon, Mar 22, 2010 at 12:25, Harry Putnam rea...@newsguy.com wrote: Harry Putnam rea...@newsguy.com writes:But even then I still

Re: filter script read STDIN from named pipe file

2010-03-23 Thread Uri Guttman
KW == Kenneth Wolcott kennethwolc...@gmail.com writes: KW On Mon, Mar 22, 2010 at 15:50, Uri Guttman u...@stemsystems.com wrote: KW == Kenneth Wolcott kennethwolc...@gmail.com writes: KW   select LOGNAME; KW   $|++; KW   select STDOUT; KW  KW   Which is what

Re: Save to memory temporarily

2010-03-23 Thread raphael()
any one here?

Re: Save to memory temporarily

2010-03-23 Thread Shlomi Fish
Hi raphael()! Let me comment on your code. On Monday 22 Mar 2010 13:30:09 raphael() wrote: On Thu, Mar 18, 2010 at 7:30 PM, Peter Scott pe...@psdt.com wrote: On Wed, 17 Mar 2010 20:19:01 +0530, raphael() wrote: Hello, Is there a way to save/store downloaded data (using

IOScalar with threads dose not work

2010-03-23 Thread iizuka
I'm trying to make threaded Net::Telnet program. I want all input_log to be written to one file. So I tried to give an IOScalar FileHandle to input_log, then output real file later. IOScalar works fine, threads works fine. But together dosen't work. Here is sample script. Any suggestions

Deleting last 10 lines of a file

2010-03-23 Thread sheela b
Hi All, How to delete last 10 lines of a file using Perl one liner? I used the following one liner to delete first 10 lines of a file, perl -i.bak -ne 'print unless 1..10' test.txt Regards Sheela

Re: IOScalar with threads dose not work

2010-03-23 Thread Shlomi Fish
Hi iizuka! On Tuesday 23 Mar 2010 09:53:54 iiz...@sizk.net wrote: I'm trying to make threaded Net::Telnet program. I want all input_log to be written to one file. So I tried to give an IOScalar FileHandle to input_log, then output real file later. IOScalar works fine, threads works fine. But

AW: Deleting last 10 lines of a file

2010-03-23 Thread Thomas Bätzler
sheela b sheela.b.2...@gmail.com asked: How to delete last 10 lines of a file using Perl one liner? I used the following one liner to delete first 10 lines of a file, perl -i.bak -ne 'print unless 1..10' test.txt OTTOH: perl -i.bak -ne 'BEGIN { $b[9]= } print shift @b; push @b,

Re: Deleting last 10 lines of a file

2010-03-23 Thread Shlomi Fish
Hi Sheela, On Tuesday 23 Mar 2010 15:06:24 sheela b wrote: Hi All, How to delete last 10 lines of a file using Perl one liner? I used the following one liner to delete first 10 lines of a file, perl -i.bak -ne 'print unless 1..10' test.txt If it doesn't have to be a one-liner, you

Re: IOScalar with threads dose not work

2010-03-23 Thread Jeff Peng
2010/3/23 Shlomi Fish shlo...@iglu.org.il: 2. Don't use threads in Perl. They cause too many problems. Does it still have many problems until now? I ask it just because I wrote many code with Perl threads in my work, they seem work nice. -- Jeff Peng Email: jeffp...@netzero.net Skype:

+Hi+

2010-03-23 Thread garrett esperum
--- _ Hotmail: Trusted email with powerful SPAM protection. http://clk.atdmt.com/GBL/go/210850553/direct/01/

Getting garbage fast

2010-03-23 Thread Eric Veith1
Hello list, this is rather unusual: I want a chunk of random garbage, and I want it fast. The background is that I have a streaming test, and to run into some intelligent read-ahead/write-behind/caching algorithm, I need random stuff. /dev/null is fast, but obviously won't do it. /dev/urandom

RE: Getting garbage fast

2010-03-23 Thread Bob McConnell
From: Eric Veith1 this is rather unusual: I want a chunk of random garbage, and I want it fast. The background is that I have a streaming test, and to run into some intelligent read-ahead/write-behind/caching algorithm, I need random stuff. /dev/null is fast, but obviously won't do it.

Re: Getting garbage fast

2010-03-23 Thread Sam
Eric Veith1 wrote: Hello list, this is rather unusual: I want a chunk of random garbage, and I want it fast. The background is that I have a streaming test, and to run into some intelligent read-ahead/write-behind/caching algorithm, I need random stuff. /dev/null is fast, but obviously won't

Re: Getting garbage fast

2010-03-23 Thread Eric Veith1
Sam p...@net153.net wrote on 03/23/2010 11:18:11 PM: Could you use a file of random data? You can create one of those really easy: dd if=/dev/urandom of=ranfile bs= Theoretically, yes, of course I could just try to create an arbitrary sized file from /dev/urandom via dd. I hoped there