The Unix shell script below demonstrates a way to terminate the test case execution after a specified period of time. This is to cope with cases of e.g. a test script being stuck inside an endless loop.
Note that killing squishrunner like that will likely leave only partial results behind. I.e. the generated XML file might be missing closing tags or be completely empty.
A safer built-in --timeout switch for squishrunner is available since Squish 6.1 release.