<div dir="ltr">Is it possible to handle stdout and/or stderr of system("command") separately? That way, it might be useful in other places as well.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 4, 2014 at 12:08 PM, Yadu Nand <span dir="ltr"><<a href="mailto:yadudoc1729@gmail.com" target="_blank">yadudoc1729@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have just added a new builtin "system" to trunk. It takes a string,<br>
which is executed in the shell<br>
by java and the results are returned as an array. This is done to make<br>
mappings easier, for example,<br>
you can map an entire folder "foo" using the following :<br>
<br>
file folder[ ] < array_mapper; files = system ("find foo -type f") >;<br>
<br>
If the execution of the string provided fails, the logger would report<br>
the the exitcode and stderr to<br>
the swift stdout.<br>
<br>
Thanks,<br>
Yadu Nand B<br>
_______________________________________________<br>
Swift-devel mailing list<br>
<a href="mailto:Swift-devel@ci.uchicago.edu">Swift-devel@ci.uchicago.edu</a><br>
<a href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel" target="_blank">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel</a><br>
</blockquote></div><br></div>