M
M
Michael2017-09-22 15:44:01
linux
Michael, 2017-09-22 15:44:01

How to create a tcp session in linux to send data?

It is necessary to raise a tcp session between the Linux machine and the equipment in order to transfer data to the piece of iron.
Data is a command in decimal form (10 digits).
How can it be implemented?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2017-09-22
@ARMADIK

telnet ip-addr port < youdata.txt
something like that. I may be wrong in the form, some keys may be needed. But do you understand the way?

L
Lynn "Coffee Man", 2017-09-22
@Lynn

More or less like this:
echo -n 1234567890 | nc 1.2.3.4 8888

I
IllusionTurtle, 2017-09-22
@IllusionTurtle

ping ip-addr -p 30313233343536373839 -s 10
will work? only it's not tcp ^^

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question