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 <