uscheduleruntimelimit - start child and kill it after some time
uscheduleruntimelimit LIMIT CHILD [...]
uscheduleruntimelimit starts CHILD and sends it a TERM signal after the LIMIT has been reached. 5 seconds later a KILL signal is sent.
uscheduleruntimelimit exits as soon as the CHILD exits, preserving it’s exit code.
LIMIT is given as number and by default interpreted as seconds. To change it’s meaning to minutes (or hours, days) append a m (or h, d) character. uschedule(1) command for this.
This option was added for uschedule 0.7.1.
uscheduleruntimelimit 6 sh -c ’sleep 30’
will exit after 6 seconds.
uscheduleruntimelimit 6m sh -c ’sleep 30’
will exit after 30 seconds.
Uwe Ohse, email@example.com