in reply to Capture STDOUT and send to screen with open3

I have a need to capture STDOUT and STDERR and send both to screen.

Have a look at tee from Capture::Tiny, I have found it to be a great module.

Replies are listed 'Best First'.
Re^2: Capture STDOUT and send to screen with open3
by computergeek (Novice) on Mar 05, 2018 at 17:04 UTC

    Yes, after I posted I found that and you are right. My issue right now is I would like to use a more base module in perl to improve portability. Capture::Tiny is not available for install w/o cpan on Oracle Linux

      Capture::Tiny is not available for install w/o cpan on Oracle Linux

      You don't need cpan, does the manual installation procedure not work?

      $ wget http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/Capture-Ti +ny-0.46.tar.gz $ tar zxvf Capture-Tiny-0.46.tar.gz $ cd Capture-Tiny-0.46 $ perl Makefile.PL $ make $ make test $ make install

      Or perhaps cpanm:

      $ curl -L https://cpanmin.us | perl - App::cpanminus $ cpanm Capture::Tiny
        Doesn't matter. I will not always have root access. If sysadmin cannot install with yum I have no chance. And they may not even be willing to use yum. Some sysadmin are base installs and that's it.