summaryrefslogtreecommitdiff
path: root/examples/filebrowser/backend-ps.sh
blob: b06ff99ae4c1b036db92e3c2dfdc03ba7d9d4443 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
#give a list of files.
#wait for a selection on stdin
#cd or start that file
#repeat.
while true;do
#not sure why this needs to be printed to show up every time.
  ps | tail -n+2
  read -r selection
  echo $selection
  echo
done