Pamhyr2/tools/ssh-run.sh

11 lines
270 B
Bash
Executable File

#! /bin/sh
# > ssh-run.sh SERVER DESTDIR SOLVER INPUT
# First argument is the server name/addr
# The second argument is the destination directory to copy input data
# The third argument is the solver path
# The fourth argument is the input name
ssh $1 "cd $2; $3 $4"