Class RunProcess

  • All Implemented Interfaces:
    Named

    public class RunProcess
    extends ProcedureN
    The Kawa run-process command builds and runs a Process.
    • Constructor Detail

      • RunProcess

        public RunProcess​(String name)
    • Method Detail

      • error

        protected static void error​(String message)
      • tokenize

        public static void tokenize​(String str,
                                    boolean useShell,
                                    List<String> arr)
        Parse strings into token, handling substitution marks.
        Parameters:
        useShell - true if result will be further tokenized by a shell. (In this case we're basically just handling substiution marks.)
      • copyStream

        public static void copyStream​(InputStream in,
                                      OutputStream out,
                                      boolean closeOut)
                               throws IOException
        Copy bytes from InputStream to OutputStream using current Thread. Continue copying until EOF or exception. At end, the input stream is closed, but the output stream is not.
        Throws:
        IOException