Java 运行远程 Bashscript [英] Java Running Remote Bashscript
本文介绍了Java 运行远程 Bashscript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从我的 Java 程序连接一个远程机器(有一个 Linux 操作系统),我想在它上面运行一个脚本.我也会处理该脚本的结果(它会向控制台写入一些内容).
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.
推荐答案
java 中有 SSH 库.您可以使用它们在远程机器上执行脚本.
There are SSH libraries in java. you can use them to execute scripts on a remote machine.
这篇关于Java 运行远程 Bashscript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文