![]() |
|
go ahead... be a heretic | |
PerlMonks |
Re^4: Capturing bash output without displaying STOUT in terminalby Linicks (Scribe) |
on Sep 08, 2016 at 17:16 UTC ( #1171417=note: print w/replies, xml ) | Need Help?? |
I tried this, and it doesn't work for 'git fetch --tags' for some reason. My guess is that using this command produces some sort of 'active' output (for want of a better description) in the terminal, and it isn't a static output like you would get from backticks 'ls' or 'ps ax' etc. Now for some reason, once you run 'git fetch --tags', any other time you run it, there is no output - I don't know how to reset it to test - but maybe try saving the command in a text file chmod 755 gitfetch.sh and then use
BTW, using 'my $git = `git status`; works:
Nick
In Section
Seekers of Perl Wisdom
|
|