[tpm] sys call length limitation
Tom Legrady
legrady at gmail.com
Tue Jan 21 15:44:03 PST 2014
How about opening it as a file, and feeding the input a line at a time?
Make it a subroutine or a module, and the pain is localized.
Tom
On Tue, Jan 21, 2014 at 6:20 PM, Antonio Sun <tpm.ats at spamgourmet.com>wrote:
>
> On Tue, Jan 21, 2014 at 3:12 PM, Antonio Sun wrote:
>
> I.e., I need to pipe the matching string ($1, content between tag HttpBody)
>> to an external program via shell. As you can tell, if the matching
>> content is too big for shell parameter length, my script will fail.
>
>
> Found out that the limitation is actually how much characters one can
> stuff in between ``:
>
> $ 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 under Perl.
>
> Any way to increase the sys call length limitation, ie the limitation how
> much characters one can stuff in between ``?
>
> Thanks
>
> Antonio
>
> _______________________________________________
> toronto-pm mailing list
> toronto-pm at pm.org
> http://mail.pm.org/mailman/listinfo/toronto-pm
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/toronto-pm/attachments/20140121/1d3a9a3f/attachment-0001.html>
More information about the toronto-pm
mailing list