aboutsummaryrefslogtreecommitdiff
path: root/common/scripts/utils/waypipe_app
blob: a8520bc1505fbe1451ac2c1388afaa3de507166e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# Usage: ./waypipe_app user@remote <app>
# Example: ./waypipe_app user@remote gedit

if [ $# -lt 2 ]; then
    echo "Usage: $0 user@remote <app> [args...]"
    exit 1
fi

REMOTE=$1
shift
APP="$@"

# Run the app remotely, forward display over SSH with waypipe
waypipe ssh "$REMOTE" $APP