Write to stdin of a running process using pipe
Posted
by
aditya
on Server Fault
See other posts from Server Fault
or by aditya
Published on 2012-10-29T09:41:48Z
Indexed on
2012/10/29
11:04 UTC
Read the original article
Hit count: 245
I am in a similar situation as in this post But I couln't get the solution provided there to work in my situation as the answer seems related to that question only.
In particular, I couldnt understand what was the purpose of
cat my.fifo | nc remotehost.tld 10000
In my case, I have a process running and waiting for input. how can I send input to that process using named pipes?
I've tried echo 'h' > /proc/PID/fd/0
it just displays 'h' on the process' window.
© Server Fault or respective owner