diff options
Diffstat (limited to 'scripts/_https._tcp.sh')
-rwxr-xr-x | scripts/_https._tcp.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/_https._tcp.sh b/scripts/_https._tcp.sh new file mode 100755 index 0000000..d196ea6 --- /dev/null +++ b/scripts/_https._tcp.sh @@ -0,0 +1,21 @@ +#!/bin/sh +TYPE=`basename $0` +NAME=$1 +HOSTNAME=$2 +ADDRESS=$3 +PORT=$4 +TXTS=$5 + +for TXT in $TXTS +do + eval TXT_$TXT +done + +HANDLER=`echo $TYPE | cut -f 1 -d "." | cut -f 2 -d "_"` + +if [ ! -z "$TXT_path" ] +then + path=`echo $TXT_path | sed -e 's/^\///g'` +fi + +gnome-open "$HANDLER://$ADDRESS:$PORT/$path" |