Hello everyone
I want to process a long running external application, which writes to STDOUT and STDERR. Unfortunately application output is unstructured. So I would like to capture STDOUT and STDERR and somehow delegate it to Log::Log4perls $log->info or $log->error methods.
I tried several Modules IPC::Open3, IPC::Run3, Tie::STDOUT, Tie::STDERR but none easily does what I want ( or maybe I am just blind ).
Has anyone of my fellow monks already written a script as described and could show me an example?
print+qq(\L@{[ref\&@]}@{['@'x7^'!#2/"!4']});
In reply to Best practice ipc and Log::Log4perl by codeacrobat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |