2013-10-01 49 views
0

是否有可能從java調用bash腳本? 和過去我們用膩子編寫的netbeans 得到,設置和分配。Bash腳本與netbeans/java

如果屬實,我可以在哪裏瞭解更多信息? 任何信息將是真棒

+0

'難道...'==> -1。 '我在哪裏可以學到更多......'==> -1。你讀過[help](http://stackoverflow.com/help)了嗎? – devnull

+0

那麼你可以簡單地尋找答案。這裏有一些: http://stackoverflow.com/questions/16825001/running-a-bash-command-from-within-a-java-program http://stackoverflow.com/questions/4890175/how- do-i-execute-bash-commands-and-collect-the-output-from-java http://stackoverflow.com/questions/13707519/running-a-bash-shell-script-in-java –

回答

0

你可以使用ProcessBuilder

(有許多類似的問題...)

+0

謝謝,正是我所需要的 – LeRoy