Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: [OT] Filtering / Highlighting serial port input / PuTTY output

by pryrt (Prior)
on Aug 13, 2020 at 17:20 UTC ( #11120689=note: print w/replies, xml ) Need Help??


in reply to Re^2: [OT] Filtering / Highlighting serial port input / PuTTY output
in thread [OT] Filtering / Highlighting serial port input / PuTTY output

Since cygwin is undesirable, maybe Windows Subsystem for Linux?

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.

  • Comment on Re^3: [OT] Filtering / Highlighting serial port input / PuTTY output
  • Download Code

Replies are listed 'Best First'.
Re^4: [OT] Filtering / Highlighting serial port input / PuTTY output
by afoken (Canon) on Aug 14, 2020 at 11:28 UTC
    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++.

    plink -serial COM24 -sercfg 115200,8,n,1,N

    ... 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:

    plink -serial COM24 -sercfg 115200,8,n,1,N | perl -ne "/^(Pct|NRS)/ && + print"

    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". ;-)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2020-09-18 20:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (113 votes). Check out past polls.

    Notices?