#!/bin/sh set -e cd ~jmg/public_html/FreeBSD-snap tmpfile="$(mktemp snapmail.XXXXXXX)" cat > "$tmpfile" sh addinfo.sh "$tmpfile" && rm "$tmpfile"