#!/bin/sh -x printf "Content-type: text/plain\n\n"; exec 2>&1 ./downloads.pl echo "Exited with status $?"