Hi!
I've been surfing around for hours to find an answer to this problem, but feel I have to resort to consult the local collective perl/UNIX wisdom.
I am writing a multimedia remote control program and am looking for a way to send input to an interactive CLI program (the "splay" executable in "Helix DNA client"), which reads input from STDIN to for instance play/pause a music file. I would like to add a remote control interface by "simulating" local STDIN input. I know how to use pipes in system calls for processes that are executed from within a perl program; the catch in this scenario is that the target program is a completely external process started by the user before my perl program is started.
I am using a GNU/Linux system and the closest I've come to a solution is to simulate key inputs using the xautomation program. However, this program needs the target window to be in focus to work. I am looking for a solution along the lines of "send STDIN input to PID".
Any ideas? Is this at all possible?