aboutsummaryrefslogtreecommitdiff
path: root/bashweb.sh
blob: 2d572c658159dca476a28625e54d54f43f1c9dfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
##########################################################
##                                                      ##
##    Bashweb, a cursed (probably static) web server    ##
##    written in bash.                                  ##
##                                                      ##
##########################################################

export bashweb_version="0.1.1"

main () {
    nc -l -p 1234 < /tmp/backpipe | ./preprocessor/main.sh 1> /tmp/backpipe
}

rm -f /tmp/backpipe
mkfifo /tmp/backpipe

while true
do
    main &>>log
done