P
P
pixik2015-12-17 12:26:30
linux
pixik, 2015-12-17 12:26:30

How to pass a character to the standard input (std::in) of a process in linux?

Good time!
The program is terminated by a key that reads from standard input. I want to run a program in the background ( program & ). Is there a way to send a character to the standard input of a process?
Thanks for the tutorial :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Burov, 2015-12-17
@pixik

echo 'msg' > /proc/<PID>/fd/0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question