[tpm] sys call length limitation
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.
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
> $ cat HttpBody | perl -e '$s = <>; print length $s; print `echo $s`'
> 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 ``?
> toronto-pm mailing list
> toronto-pm at pm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the toronto-pm