#!/bin/sh myapp & sleep 10 kill ???? <-- no idea here...