summaryrefslogtreecommitdiff
path: root/filebrowser/backend-gopher.sh
blob: 69e1bbe56425991a5428b41f52c5b2c1317d87d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
#give a list of files.
#wait for a selection on stdin
#cd or start that file
#repeat.
server=192.168.0.2
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"
  read -r selection
  echo
done