From 52dd0d6fd34e3ad8bef1cd9e613c71f28c48c33a Mon Sep 17 00:00:00 2001 From: epoch Date: Thu, 29 Mar 2018 18:20:49 -0500 Subject: moved filebrowser stuff to examples dir --- filebrowser/backend-gopher.sh | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100755 filebrowser/backend-gopher.sh (limited to 'filebrowser/backend-gopher.sh') diff --git a/filebrowser/backend-gopher.sh b/filebrowser/backend-gopher.sh deleted file mode 100755 index e606667..0000000 --- a/filebrowser/backend-gopher.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -#give a list of files. -#wait for a selection on stdin -#cd or start that file -#repeat. -server=gopher.hacking.allowed.org -port=70 -selection=/ -while true;do -#not sure why this needs to be printed to show up every time. - printf '%s\n' "$selection" | ncat "$server" "$port" | tee /dev/stderr | grep -v ^i | cut -f2 | tr -d '\r' -### need to ask user for input in the form of a pop-up window if the selected target was of type 7 - read -r selection - if [ "_" = "_$selection" ];then - echo "looks like there's nothing here. exiting." >&2 - exit 1 - fi - echo -done -- cgit v1.2.3