#!/bin/sh myapp & sleep 10 kill $!