#!/bin/sh -e cd /path/to/incoming exec setuidgid uploader tcpserver -DRH -l 0 ::0 8086 /path/to/uploader -ucspi \ -notify-from uploader@example.com -notify-to admin@example.com 2>&1