<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Ketan,<br>
    <br>
    Do we need that ? If you add stdout, stderr and say exitcode as
    returns, the user has no <br>
    choice but to define variables to hold those return values.<br>
    <br>
    Mihael mentioned in a separate thread that the behavior should be to
    fail early in case the<br>
    executed string returns a non-zero exitcode.<br>
    <br>
    -Yadu<br>
    <br>
    <div class="moz-cite-prefix">On 04/04/2014 10:58 PM, Ketan
      Maheshwari wrote:<br>
    </div>
    <blockquote
cite="mid:CAMUuvioi7zWpdbGf7s9HbrWmMi=NjZstcYP-Zj8449vCoG1m1A@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <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 moz-do-not-send="true"
              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 moz-do-not-send="true"
              href="mailto:Swift-devel@ci.uchicago.edu">Swift-devel@ci.uchicago.edu</a><br>
            <a moz-do-not-send="true"
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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Swift-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Swift-devel@ci.uchicago.edu">Swift-devel@ci.uchicago.edu</a>
<a class="moz-txt-link-freetext" href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>