#! /bin/bash echo "Content-type: application/json" echo "" echo "" sudo /usr/local/www/cgi-bin/doorcontrol-main.cgi "$QUERY_STRING"