<div dir="ltr">No luck, the matched string is actually one big base64 encoded string in only one line.<br><div class="gmail_extra"><br></div><div class="gmail_extra">thanks though Tom<br><br><div class="gmail_quote">On Tue, Jan 21, 2014 at 6:44 PM, Tom Legrady - <a href="mailto:legrady@gmail.com">legrady@gmail.com</a> <span dir="ltr"><<a href="mailto:tpm.ats.248ddc40cb.legrady#gmail.com@ob.0sg.net" target="_blank">tpm.ats.248ddc40cb.legrady#gmail.com@ob.0sg.net</a>></span> wrote:<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"><div dir="ltr">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.<div>
<br></div><div><br></div><div>Tom</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Jan 21, 2014 at 6:20 PM, Antonio Sun <span dir="ltr"><<a href="mailto:tpm.ats@spamgourmet.com" target="_blank">tpm.ats@spamgourmet.com</a>></span> wrote:<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">
<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><span><font color="#888888">
<div class="gmail_extra"><br></div><div class="gmail_extra">Antonio <br></div></font></span></div>
<br>_______________________________________________<br>
toronto-pm mailing list<br>
<a href="mailto:toronto-pm@pm.org" target="_blank">toronto-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/toronto-pm" target="_blank">http://mail.pm.org/mailman/listinfo/toronto-pm</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div>