http://qs1969.pair.com?node_id=1171414


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.

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.