Currently, I am using a software script that requires continuous input through the terminal. The script evaluates files continuously by receiving path input and evaluating the file in the path.
The goal: Is it possible to run a script requiring input through passing input from another terminal or script.
The evaluation software loads a lot of data before being ready for processing, that is why I would prefer to keep the software running and simply pass input from time to time. Instead of starting up the software and load all data required (which takes time).
I can mention that I have tried tty to find:
$ /dev/pts/19
then through other terminal run:
$ <command> <myinput> > /dev/pts/19
where command is replaced with 'echo / print'
However, it just prints in the other terminal, it does not act as input to the software.