#!/bin/sh -e
exec \
setuidgid loguser \
multilog t ./main


syntax highlighted by Code2HTML, v. 0.9.1