I've not done it in perl before, but plenty of times in C/C++. In cases like this, I generally have a parent fork off children, one for each independent task. The parent (original) then monitors the status of the child process(es). Typically, I also have a few shared variables just for the children to advertise any interesting internal state that the parent may be interested in.
As I said, I've not done it in perl before, as none of my code has needed it so far. But IIRC, there are several thread/process management packages on CPAN that may be of some help to you.
...roboticus
In reply to Re: monitor a process's state.
by roboticus
in thread monitor a process's state.
by avanta
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |