I need to invoke a system process as part of some housekeeping routines. The problem is that it sometimes hangs and doesn't return anything.
Is there a way that I can invoke the process and after, say, 10 minutes if it hasn't returned anything kill the process and raise warnings etc.?
I'm sure there is an obvious solution but I can't think of it.