aboutsummaryrefslogtreecommitdiff
path: root/utils/waypipe_app
diff options
context:
space:
mode:
Diffstat (limited to 'utils/waypipe_app')
-rwxr-xr-xutils/waypipe_app16
1 files changed, 16 insertions, 0 deletions
diff --git a/utils/waypipe_app b/utils/waypipe_app
new file mode 100755
index 0000000..a8520bc
--- /dev/null
+++ b/utils/waypipe_app
@@ -0,0 +1,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