Run a command for a specified time and then abort if time exceeds
I was working on a continuos integration build script when a need for such a command arose. Basically put, I need to launch a command with a set time limit for it to run before it gets killed and all of the proceeding commands should immediately be run once this command launches the time -limited process in the background and not wait for it get to be killed. A sort of asynchronous concurency.
Here's what I imagine:
timelimited --limit=10 'somecommand --someoptions' someothercommand //This gets launched immediately once 'timelimited' is done creating the background process