且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何通过SSH远程运行命令自动化?

更新时间:2022-12-01 21:51:39

通常,我将使用原始的Tcl版本的Expect。你只需要在本地机器上。如果我在使用Perl的程序中,我使用 Net :: SSH: :期望。其他语言也有类似的expect工具。

Often, I'll just use the original Tcl version of Expect. You only need to have that on the local machine. If I'm inside a program using Perl, I do this with Net::SSH::Expect. Other languages have similar "expect" tools.