The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.


IPC::Run::SafeHandles - Use IPC::Run and IPC::Run3 safely


    use IPC::Run::SafeHandles;


IPC::Run and IPC::Run3 are both very upset when you try to use them under environments where you have STDOUT and/or STDERR tied to something else, such as under fastcgi.

The module adds safe-guarding code when you call IPC::Run or IPC::Run3 under such environment to make sure it always works.

If you intend to release your code to work under normal envionrment as well as under fastcgi, simply use this module after the IPC modules are loaded in your code.


When unimport, the original IPC::Run and/or IPC::Run3 functions are restored.


Chia-liang Kao, <clkao at>


Please report any bugs or feature requests to bug-ipc-run-safehandles at, or through the web interface at I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.


You can find documentation for this module with the perldoc command.

    perldoc IPC::Run::SafeHandles

You can also look for information at:



Copyright 2007 Chia-liang Kao, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.