#!/bin/sh cat << EOF > tmp.php EOF php -f tmp.php >$3 rm -f tmp.php