请提出一些解决方案。通常我使用其他计算机进行一些计算,然后在需要将数据从该计算机传输到本地主机时进行计算。这次我想从本地机器发送一些输入到远程机器,远程机器将完成它的位,然后将其输出。我怎样才能使这个过程自动化,以便重复我在本地机器上指定的次数?这很复杂吗?如果我没有提供足够的细节,请告诉我。在网络上传输数据
这是手动过程。
ssh [email protected] !ssh to remote machine
program.o input.dat !supply input to the program
sftp [email protected] !ftp to remote machine from another terminal
get output.dat !output.dat was produced by program.o
!open an other terminal
another_prog.o output.dat !run another program on my local machine
!Then repeat. Some times I may compile using a make file.
我想自动执行此过程。我有什么选择。这些程序是用C++/c,fortran等许多语言编写的。我是一个好的程序员,但我从未有过的情况下,我不得不做上面,所以教我:)
我的两个本地和远程机器的Linux/Ubuntu的