#! /bin/sh echo -e "Content-type: text/plain\n\n" echo -e "The script runs when invoked directly, but not when invoked via a link.\n" echo -e "Directory listing:\n" ls -al echo -e "\nWho we're running as:\n" id pwd