File: test-webserver.sh

package info (click to toggle)
flatpak 1.17.3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 13,508 kB
  • sloc: ansic: 104,079; xml: 12,184; sh: 5,297; python: 2,315; yacc: 1,236; makefile: 84; csh: 20
file content (10 lines) | stat: -rwxr-xr-x 144 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

set -euo pipefail

dir=$1

rm -f httpd-pipe
mkfifo httpd-pipe
$(dirname $0)/web-server.py "$dir" 3> httpd-pipe &
read < httpd-pipe