[ 
https://issues.apache.org/jira/browse/UIMA-3498?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Richard Eckart de Castilho resolved UIMA-3498.
----------------------------------------------
    Resolution: Abandoned

DUCC has been retired.

> DUCC webserver (WS) improved use of /bin/cat
> --------------------------------------------
>
>                 Key: UIMA-3498
>                 URL: https://issues.apache.org/jira/browse/UIMA-3498
>             Project: UIMA
>          Issue Type: Improvement
>          Components: DUCC
>            Reporter: Lou DeGenaro
>            Assignee: Lou DeGenaro
>            Priority: Minor
>             Fix For: future-DUCC
>
>
> In AlienFile.java, follow the recipe provided by Burn below:
> // Run process and log all output 
> ProcessBuilder pb = new ProcessBuilder(args);
> pb.redirectErrorStream(true);
> Process p = pb.start();
> BufferedReader in = new BufferedReader(new 
> InputStreamReader(p.getInputStream()));
> String line = in.readLine();
> while (line != null) {
> if (outStream == null) {
> logger.log(Level.INFO, "[" + id + "] " + line);
> } else {
> outStream.println(line);
> }
> line = in.readLine();
> }
> in.close();
> if (outStream != null) {
> outStream.close();
> }
> rc = p.waitFor();
> if (rc != 0 && outStream != null) {



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to