[WIP] send to stdin per PID
e.g. send to a program’s stdin via its PID.
echotest.c
|
|
Comiple and run the test. To send iostream to this program from elsewhere (e.g. another terminal):
echo something > /proc/<PID>/fd/0
Don’t try to read from program’s stdout/err (e.g. cat /proc/<PID>/fd/{1,2}
), because
the buffer could be consumed by other “listeners” and results will be
inconsistent.
[+] click to leave a comment [+]
>> SEND COMMENT <<