Skip Menu |

This queue is for tickets about the Proc-Simple CPAN distribution.

Report information
The Basics
Id: 62286
Status: resolved
Priority: 0/
Queue: Proc-Simple

People
Owner: Nobody in particular
Requestors: garu [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.26
Fixed in: (no value)



Subject: redirect output to variables
Hi! Thanks for such a nice module :) I think it'd be really nice to be able to redirect stdout/stderr to variables instead of just to a file. Something like: $proc->redirect_output( \$stdout, \$stderr ); would do it and still leave room for the vanilla: $proc->redirect_output( $stdout_filename, $stderr_filename ); Being able to redirect the output to variables will certainly help manipulate the process' results, and even integrate Proc::Simple with Log::Log4perl. Right now I'm having to encapsulate my Proc::Simple calls with Capture::Tiny. Thanks!
Thanks for your bug report. Yeah, it'd be nice to have, but on the other hand, I think you already have a great solution in place with Capture::Tiny. I'd rather keep Proc::Simple simple (!) and let it do one job and one job well. Hope that works for you!