in reply to Re: trying to get timeout to work (easier with threads)
in thread trying to get timeout to work
That sounds promising. I will have to check threads and threads::shared as I in fact need (or wanted) to:
- Run several system commands in parallel
- Store the results in an sqlite DB
- Time out if a command runs too long
As it seemed to be not too easy to get the data from the parallel commands back to the parent, so that I just have one writer to the sqlite DB, I skipped this part for now and concentrated on the timeout part.
It seems with threads::shared, I can achieve what I wanted in the first place. Thanks BrowserUk!
s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
+.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e
In Section
Seekers of Perl Wisdom