This is the syntax I'm going for:
grep ba > t.txt 2>&1 <<< $(echo -e "foo\nbar\nbaz")
To demonstrate what I'm Looking at:
use IPC::Run qw(run);
my $count = 0;
$count += 10;
$str .= "1111111111";
run [echo => $str], '|', [grep => 'foo'];
print "$count " unless ($count % 10000)
And if you don't feel like waiting for it, here's the result:
10000 20000 30000 40000 50000 60000 70000 80000 90000 100000 110000 12
+0000 130000 exec failed: Argument list too long at ./t2.pl line 16.
at ./t2.pl line 16.
If I don't use ipset (which are pretty long by their own, I'm under the limit. However, without ipset:
# wc -c fw2.save
I don't want to write a tempfile unless there's no other option, ulimit -s unlimited doesn't seem to make a difference, and I'm not sure about FFI::Raw and iptc.o / iptables.o (I'm looking into it).
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||