There's more than one way to do things | |
PerlMonks |
Re^4: [OT] Filtering / Highlighting serial port input / PuTTY outputby afoken (Chancellor) |
on Aug 14, 2020 at 11:28 UTC ( [id://11120722]=note: print w/replies, xml ) | Need Help?? |
Or use gnuwin32's grep on the output of putty's plink.exe (which is the command-line client). I am able to successfully plink -batch -ssh ... | grep ... for what I need. I was about to complain that I need a serial connection, but plink can do that, too! Cool, I never would have thought of using plink for anything else but SSH and telnet. Thank you, pryrt++.
... works for reading debug output from the microcontroller, but my ancient grep binary seems to buffer an insane amount of data before writing. It simply does not output anything when fed with just a few hundred lines. Replacing it with perl (from Strawberry) works fine:
Now I just have to test it with ConEmu proposed by aitap++. Alexander
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section
Seekers of Perl Wisdom
|
|