[tpm] sys call length limitation

Antonio Sun tpm.ats at spamgourmet.com
Tue Jan 21 15:55:37 PST 2014


No luck, the matched string is actually one big base64 encoded string
in only one line.

thanks though Tom

On Tue, Jan 21, 2014 at 6:44 PM, Tom Legrady - legrady at gmail.com <
tpm.ats.248ddc40cb.legrady#gmail.com at ob.0sg.net> wrote:

> 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/dfdbdcaa/attachment.html>


More information about the toronto-pm mailing list