X-Git-Url: https://rtime.felk.cvut.cz/gitweb/socketcan-simulink.git/blobdiff_plain/07cd3baf5c2ecb3b824d48d96f60737c00186415..6359990d93b39887a25e03ad459b94004e10af65:/demo/canopen_2j_arm/run_model.sh diff --git a/demo/canopen_2j_arm/run_model.sh b/demo/canopen_2j_arm/run_model.sh new file mode 100755 index 0000000..b3b26b2 --- /dev/null +++ b/demo/canopen_2j_arm/run_model.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +if [ -n "$2" ] ; then + + xterm -e "scp -i target-ssh-key ./$1 root@$2:/tmp ; echo model $1 copied to target is run ; ssh -i target-ssh-key root@$2 /tmp/$1 -tf inf -w ; sleep 2" & + +else + + xterm -e "./$1 -tf inf -w ; sleep 2" & + +fi