Hi, $0.02 Look on cpan for the various proc:: modules. If you're doing something like a file copy, and need to shell out to do something, consider looking at : http://search.cpan.org/~bzajac/Proc-Background-1.10/lib/Proc/Background.pm. For me, it works when I need to do something on the command line and wait for it to come back to me... Others your milage may vary... Good luck, Zak
On Tue, Nov 1, 2011 at 8:23 PM, Danny Wong (dannwong) <dannw...@cisco.com>wrote: > Hi all, > I would like to perform the following, start X (say 10) number > of threads to perform some operation (ex. Copy command), I would like to > exit or return out of the thread(s) that takes too long ( ex. 30 minutes > ). I'm thinking I should spawn an independent thread (a watch thread) > and have that thread watch to see if any of the 10 threads are taking > longer than 30 minutes to complete. Any example how I can accomplish > this? Any other suggesting would be great to. > > BTW, I'm using perl 5.8.8., thread version 1.07. > > Thanks. > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > >