You can find some example code I wrote in answer to somebody else who (it turned out after many iterations), had a very similar problem to solve.
You'll find the following nodes helpful (I hope):
The solution was about the same as some of the solutions already posted in this thread, but sometimes it helps to see a few different angles on it...
Cheers.
In reply to Re: Timeout on system command
by edan
in thread Timeout on system command
by MorgothSauron
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |