I have the following bash script for running some apps in a folder for 1 second each (for testing):#!/bin/bashfor app in ./*.appdo    myrunner $app &    sleep 1    killall -9 myrunnerdoneBut I think using killall -9 is not the real best way for doing it, is there a better one?
How to make a script for run apps for 1 second?
bash;shell script
I think you want to use timeout, e.g.timeout 1s myrunner $app