Re: sys call length limitation

Discussion in 'Perl Misc' started by Rainer Weikusat, Jan 22, 2014.

  1. * Tong * <> writes:
    > I just found out that there is a strict limitation on how many characters
    > one can stuff in between `` sys calls:
    >
    > $ echo "`cat HttpBody`" | wc -c
    > 238566
    >
    > $ cat HttpBody | perl -e '$s = <>; print length $s; print `echo $s`'
    > 238566
    >
    > I.e., the echo works fine in my shell, but not OK within Perl.
    >
    > Any way to increase the sys call length limitation, ie the limitation how
    > many characters one can stuff in between ``?


    As George already pointed out, this limit usually limits the combined
    size of environment and command-line arguments. Usually, it can only
    be changed by changing the kernel.
    Rainer Weikusat, Jan 22, 2014
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tim McDaniel

    Re: sys call length limitation

    Tim McDaniel, Jan 22, 2014, in forum: Perl Misc
    Replies:
    0
    Views:
    77
    Tim McDaniel
    Jan 22, 2014
  2. George Mpouras

    Re: sys call length limitation

    George Mpouras, Jan 22, 2014, in forum: Perl Misc
    Replies:
    0
    Views:
    63
    George Mpouras
    Jan 22, 2014
  3. Rainer Weikusat

    Re: sys call length limitation

    Rainer Weikusat, Jan 22, 2014, in forum: Perl Misc
    Replies:
    2
    Views:
    68
    Peter J. Holzer
    Jan 23, 2014
  4. Rainer Weikusat

    Re: [OT] sys call length limitation

    Rainer Weikusat, Jan 24, 2014, in forum: Perl Misc
    Replies:
    1
    Views:
    87
    Rainer Weikusat
    Jan 24, 2014
  5. gamo
    Replies:
    22
    Views:
    148
    Rainer Weikusat
    Jan 26, 2014
Loading...

Share This Page