Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Capturing bash output without displaying STOUT in terminal

by dasgar (Priest)
on Sep 08, 2016 at 16:29 UTC ( [id://1171414]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Capturing bash output without displaying STOUT in terminal
in thread Capturing bash output without displaying STOUT in terminal

Based on your response to my post as well as stevieb's initial post, I'd agree with stevieb that it looks like the command that you're running is sending the response to STDERR. As stevieb has pointed out, his suggestion of using backticks will only let you capture STDOUT. Capture::Tiny can capture both STDOUT and STDERR (and exit code) for system commands.

  • Comment on Re^3: Capturing bash output without displaying STOUT in terminal

Replies are listed 'Best First'.
Re^4: Capturing bash output without displaying STOUT in terminal
by bart (Canon) on Sep 08, 2016 at 19:17 UTC
    Or, you can append 2>&1 to the command line, allowing STDERR to be captured through STDOUT. Only recommended if the normal STDOUT is empty.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-16 18:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found