![]() |
|
XP is just a number | |
PerlMonks |
Re^3: Capturing bash output without displaying STOUT in terminalby ikegami (Patriarch) |
on Sep 08, 2016 at 21:36 UTC ( #1171439=note: print w/replies, xml ) | Need Help?? |
Some programs (e.g ssh when asking for a password) write directly to the terminal, not STDOUT.
You have to create pseudo-tty's (as Expect does) in that case. IPC::Run supports capturing STDOUT and STDERR separately, and easily. It even supports pseudo-tty creation if you need them.
In Section
Seekers of Perl Wisdom
|
|