通过SSH运行作业(Linux/OSX)

编程入门 行业动态 更新时间:2024-10-24 18:21:08
本文介绍了通过SSH运行作业(Linux/OSX)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想知道是否可以通过ssh执行作业.特别是我在许多机器上有不同的输入文件列表,这些机器都在同一位置具有相同的可执行文件.是否有一些命令,这意味着我不必使用ssh从一台计算机移到另一台计算机,也不必将它们设置为单独运行.我想到的是这样的东西:

I was wondering if it was possible to execute jobs via ssh. In particular I have a different list of input files on a number of machines that all have the same executable in the same place. Is there some command which means I dont have to move from machine to machine using ssh and set them running individually. The sort of thing I had in mind would be something like:

ssh RemoteMachine1:./Executable〜/Inputfile_1 ssh RemoteMachine2:./可执行文件〜/Inputfile_2

ssh RemoteMachine1:./Executable ~/Inputfile_1 ssh RemoteMachine2:./Executable ~/Inputfile_2

可以在我的主机上运行? 提前致谢 杰克

which could be run from my host machine? Thanks in advance Jack

推荐答案

尝试使用织物

"Fabric是一个Python(2.5或更高版本)的库和命令行工具,用于简化SSH在应用程序部署或系统管理任务中的使用."

"Fabric is a Python (2.5 or higher) library and command-line tool for streamlining the use of SSH for application deployment or systems administration tasks."

更多推荐

通过SSH运行作业(Linux/OSX)

本文发布于:2023-10-25 08:07:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1526412.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:作业   SSH   OSX   Linux

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!