0

We use zsh shell on a macbook and try to read the output of some weighting scales with sockets on 10.0.117.14 Port 8884. I could not make zsh/net/socket commands to work in any way on my mac.

I tried for example pierrefroelicher@mbAir2021pcf ~ % nc -z 10.0.117.14 8884 pierrefroelicher@mbAir2021pcf ~ %

and nothing happened. I do not know if I have to install a "module".. And what command to use.

I tried and pierrefroelicher@mbAir2021pcf ~ % nc 10.0.117.14 8882 4p000064000000` Gives the weight.. here for example 640g.. however it opens a TCP connection to the scale and blocks the port. telnet, after installing brew install telnet also works

pierrefroelicher@mbAir2021pcf ~ % telnet 10.0.117.14 8882

Trying 10.0.117.14... Connected to 10.0.117.14. Escape character is '^]'. ^Zexit064000000

But.. I now would like to do this in curl.. would like to have not a stream.. but a one time read.. and then liberating the port..

0 Answers0