mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-29 19:10:42 +01:00
tools: ssh: Minor change on ssh run tool script.
This commit is contained in:
1 parent
334e7b5822
commit
a3f3fca6b6
1 file changed
+7
-3
+7
-3
@@ -1,10 +1,14 @@
|
||||
#! /bin/sh
|
||||
|
||||
# > ssh-run.sh SERVER DESTDIR SOLVER INPUT
|
||||
# > ssh-run.sh SERVER DESTDIR SOLVER ARGS 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
|
||||
# The fourth argument is an solver args separate by ',' or input name
|
||||
# The sixth argument is the input name or nothing
|
||||
|
||||
ssh $1 "cd $2; $3 $4"
|
||||
args=$(echo $4 | tr ',' ' ')
|
||||
|
||||
echo "ssh $1 \"cd $2; $3 $args $5\""
|
||||
ssh $1 "cd $2; $3 $args $5"
|
||||
Reference in new issue
Block a user