in reply to Re^3: Executing Commands with "open"
in thread Executing Commands with "open"

(64k?)

Seems to be 12k?

C:\>perl -E"$s='x'x1024; say $s, warn $_ for 1 .. 100" | perl -nle" sl +eep 100" 1 at -e line 1. 2 at -e line 1. 3 at -e line 1. 4 at -e line 1. 5 at -e line 1. 6 at -e line 1. 7 at -e line 1. 8 at -e line 1. 9 at -e line 1. 10 at -e line 1. 11 at -e line 1. 12 at -e line 1.

Update: I think 4K at each end and 4k in the middle.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy

Replies are listed 'Best First'.
Re^5: Executing Commands with "open"
by ikegami (Patriarch) on Jun 14, 2010 at 19:06 UTC

    There's a couple of problems with your code (buffering, sending 1025 or 1026 bytes at a time, -n absorbs some of the bytes).

    On this Debian system:

    $ perl -e'$|=1; { print("x"x1024); warn(++$i); redo }' | perl -e sleep ... 60 at -e line 1. 61 at -e line 1. 62 at -e line 1. 63 at -e line 1. 64 at -e line 1. [blocks] ^C