A
A
Andrey Evdokimov2019-04-12 19:49:49
linux
Andrey Evdokimov, 2019-04-12 19:49:49

Is it possible to redirect the I/O of a running process to a linux socket in real time?

Is it possible to redirect the I/O of a running process to socket. Linux, C, CPP.
That is, programmatically start the process and control it through the socket remotely in real time, and not get the result of the execution?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Aleksandrov, 2019-04-12
@jamakasi666

There is a wonderful nc utility that will do this in any form.
Somehow I missed that sockets, there is also socat

V
Vitsliputsli, 2019-04-12
@Vitsliputsli

man unix, there are even examples of source codes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question