From 1dad3dc0d789517fe098b5c7772a14f892c7bfdc Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sun, 27 Oct 2013 19:36:19 -0700 Subject: [PATCH] Add initial guacctl implementation. --- bin/guacctl | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100755 bin/guacctl diff --git a/bin/guacctl b/bin/guacctl new file mode 100755 index 00000000..7f31f594 --- /dev/null +++ b/bin/guacctl @@ -0,0 +1,74 @@ +#!/bin/sh +# +# guacctl +# +# Utility for sending Guacamole-specific console codes for controlling the SSH +# session, such as: +# +# * Downloading files +# * Setting the destination directory for uploads +# + +send_download_file() { + FILENAME="$1" + printf "\033]482200;%s\007" "$FILENAME" +} + +send_set_directory() { + FILENAME="$1" + printf "\033]482201;%s\007" "$FILENAME" +} + +error() { + echo "$NAME:" "$@" >&2 +} + +usage() { + cat >&2 <