Create runfor

run a command line for at most $1 seconds, then reap it.