I need to monitor an console exe application which don't have any stdin from the user it only print some info to the screen i used a POE:Wheel for this task
Below are my code:
use POE qw( Wheel::Run);
POE::Session->create(
inline_states => {
_start => sub {
my ($heap) = $_[HEAP];
my $run = POE::Wheel::Run->new(
Program => "my_program.exe",
StdoutEvent => "print"
);
$heap->{run} = $run ;
},
print => sub {print "somthing";}
}
);
$poe_kernel->run( );
When i run the above code/script and run the my_program.exe i didn't see any print on the screen could someone tell what could be my problem here .