<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 21, 2014 at 3:12 PM, Antonio Sun wrote:</div><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<font face="arial, sans-serif">I.e., I need to pipe the matching string ($1, content between tag </font><span style="font-family:arial,sans-serif;font-size:13px">HttpBody) to an external program via shell. As you can tell, </span><span style="font-family:arial,sans-serif;font-size:13px">if the </span><span style="font-family:arial,sans-serif">matching </span><span style="font-family:arial,sans-serif;font-size:13px">content</span><span style="font-family:arial,sans-serif;font-size:13px"> is too big for shell parameter length, my script will fail.</span></blockquote>
</div><br>Found out that the limitation is actually how much characters one can stuff in between ``:</div><div class="gmail_extra"><br></div><div class="gmail_extra"> $ echo "`cat <span style="font-family:arial,sans-serif;font-size:13px">HttpBody</span>`" | wc -c<br>
</div><div class="gmail_extra"> 238566</div><div class="gmail_extra"><br></div><div class="gmail_extra"> $ cat <span style="font-size:13px;font-family:arial,sans-serif">HttpBody </span><font face="arial, sans-serif">| perl -e '$s = <>; print length $s; print `echo $s`'</font><br>
</div><div class="gmail_extra"> 238566<font face="arial, sans-serif"><br></font></div><div class="gmail_extra"><br></div><div class="gmail_extra">I.e., the echo works fine in my shell, but not ok under Perl. </div><div class="gmail_extra">
<br></div><div class="gmail_extra">Any way to increase the sys call length limitation, ie the limitation how much characters one can stuff in between ``? </div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Antonio <br></div></div>