blob: 16989b97a24b78c9d05f9c3ad937bfb06d1313d0 [file] [log] [blame]
Mahmoud Bazzal69a0a242019-08-22 17:36:17 +02001#!/usr/bin/env bash
2#*******************************************************************************
3# Copyright (c) 2019 Dortmund University of Applied Sciences and Arts and others.
4#
5# This program and the accompanying materials are made
6# available under the terms of the Eclipse Public License 2.0
7# which is available at https://www.eclipse.org/legal/epl-2.0/
8#
9# SPDX-License-Identifier: EPL-2.0
10#
11# Contributors:
12# Dortmund University of Applied Sciences and Arts - initial API and implementation
13#*******************************************************************************
14echo "Parallella remote Script version 1.0"
15echo "welcome to the world of tomorrow"
16
17#Board connection parameters
18HOST_NAME=172.22.167.10
19HOST_USER=parallella
20PORT=22
21HOST_OFFLOAD_PATH="~/boardExec"
22
23#SSH key file
24KEY=~/.ssh/key
25#path and file name inputs
26DEPOLYMENT_BINARY=${1?Error: no host binary given}
27
28echo "---------------------------------------"
29echo "Running program $HOST_BINARY"
30echo "***************************************"
31#run the binaries remotely on parallella
32ssh $HOST_NAME -p$PORT -l$HOST_USER -i$KEY "EPIPHANY_HOME=/opt/adapteva/esdk && . $EPIPHANY_HOME/setup.sh && cd $HOST_OFFLOAD_PATH && ./$DEPOLYMENT_BINARY"
33echo "***************************************"
34echo "done"