Bash script redirecting stdin to program and its output to another program
问题 I'm just learning bash scripting. It's the first time I have to redirect output to another program and I don't know how to do it. I have to write a script which connects a GUI program, and zero, one or two programs - I need two players, both can be computer or human. GUI gets output from both programs (or humans, I mean from stdin). Let's assume that there is one human and one comp_player. Human gives command using stdin, this command has to be redirected to running GUI program and running