Java Running Remote Bashscript

拈花ヽ惹草 提交于 2019-12-12 06:02:55

问题


I want to connect a remote machine(has a Linux operation system) from my Java Program and I want to run a script on it. I will process the result of that script(it writes something to console) too.

What do you suggest for me? If anything needed I can explain more.


回答1:


There are SSH libraries in java. you can use them to execute scripts on a remote machine.



来源:https://stackoverflow.com/questions/5577513/java-running-remote-bashscript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!