Monks,
I am trying to get the result of a shell command while using threads but what else is new - I am not having any luck. Some of my commands take a long time so I like to stop them and report the event. Is there a better way to do this using another technique?
use Thread qw(yield async);
async {
my $time = 10;
while ($time--){$command = `shell command`;}
yield;
};
#do something with command