Running other programs from Java

后端 未结 6 488
暖寄归人
暖寄归人 2020-12-21 15:51

I need to run a couple of other programs from my own Java program, basically I need to run these command line statements.

svn log --xml -v > svn.log
         


        
6条回答
  •  再見小時候
    2020-12-21 16:51

    instead of piping in your command, just let it print to standard output and error output. You can access those streams from your process object that is returned from exec.

提交回复
热议问题