Class RunProcess

All Implemented Interfaces:
Named

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

    • applyToConsumerRP

      public static final MethodHandle applyToConsumerRP
    • instance

      public static final RunProcess instance
    • inheritSymbol

      public static final SimpleSymbol inheritSymbol
    • pipeSymbol

      public static final SimpleSymbol pipeSymbol
    • currentSymbol

      public static final SimpleSymbol currentSymbol
    • outSymbol

      public static final SimpleSymbol outSymbol
  • Constructor Details

    • RunProcess

      public RunProcess(String name)
  • Method Details

    • applyToConsumerRP

      public static Object applyToConsumerRP(Procedure proc, CallContext ctx) throws Throwable
      Throws:
      Throwable
    • error

      protected static void error(String message)
    • doit

      public static void doit(ArgListVector args, Consumer consumer) throws Throwable
      Throws:
      Throwable
    • 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.)
    • getInputStreamFrom

      public static InputStream getInputStreamFrom(Object val)
    • 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