Sending command (input parameter for app) to running process
I have a game engine (chess, stockfish) running from terminal. After the engine run, it will register it self as process with certain ID. If I type certain command (UCI command) in the console where I run the engine, it will processing it and print some output.
Question : If I open another console, from other console how do I send a certain command to the running engine/process?
Should I write another application to do it? Then type
or can do
../LocationOfTheApp/NameOfTheApp [CMD2BSend] [RecieverID]
/proc/[receiverID] [command or the input]