Mutiple command in java processbuilder -


i trying create xml file of .smv file using multiple commands in process builder.how can give command process builder in such way output of first command , next command generate next output

 process p = null;   processbuilder pb = new processbuilder("nusmv","-int", "d:/files/bitshift.smv");              p = pb.start();              inputstream in = null;             outputstream outs = null;              stringbuffer commandresult = new stringbuffer();             string line = null;             int readint;              int returnval = p.waitfor();              in = p.getinputstream();              while ((readint = in.read()) != -1)                 {commandresult.append((char)readint);             outs = (bufferedoutputstream) p.getoutputstream();             outs.write("process_model".getbytes());             outs.write("show_traces -p 4 -o d:/output.xml".getbytes());}             outs.close();              system.out.println(commandresult.tostring());             in.close(); 

what should solve problem

how can give command process builder in such way output of first command , next command generate next output

if mean how can pipe commands together, have processbuilder start command shell, , use shell syntax piping commands together.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -