dannyhmg has asked for the wisdom of the Perl Monks concerning the following question:
Now, is it possible to get those messages and assign their content to a variable in the calling program, rather than printing them to the command line? A little more detail: My application forks, and the child process calls a long-running sub (the one that contains the code above) while the parent process monitors its status. I want the parent process to be able to retrieve the messages from the child’s sub, rather than having those messages go to STDOUT or wherever they normally go. Thanks for any advice!use Progress::Any; my $progress = Progress::Any -> get_indicator( task => ‘work’ ); # Do some stuff $progress -> update( message => “I did some stuff” ); # Do some more stuff $progress -> update( message => “I did some more stuff”);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can I use Progress::Any to monitor a child process?
by Anonymous Monk on Aug 07, 2015 at 01:34 UTC | |
|
Re: Can I use Progress::Any to monitor a child process?
by Monk::Thomas (Friar) on Aug 07, 2015 at 13:12 UTC |