Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Capture STDOUT and send to screen with open3

by haukex (Archbishop)
on Mar 04, 2018 at 11:05 UTC ( [id://1210307]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1210307]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-23 21:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found