I have the following bash script for running some apps in a folder for 1 second each (for testing):
#!/bin/bash for app in ./*.app do myrunner $app & sleep 1 killall -9 myrunner done But I think using "killall -9" is not the real best way for doing it, is there a better one?