通过SSH运行作业(Linux/OSX) [英] Running jobs through 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)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!