I don't know if i can't formulate the right question, but i couldn't find the answer to what looks like a simples thing.
Basically i'm trying to make a bash script to automate some work that i need to do with an executable program. What happens is that i can't get the script to pass the value when i'm within the executable "frame".I've tried to make the simplest thing to see if it would work and it didin't. Looks something like this:
#!/bin/bash
./run1
sleep 1
echo '0.2'
In this case i was just trying to pass the value 0.2 as input for the running process 'run1', but it didn't happen. Looking to structure of the bash script i thought that maybe the echo would just work when the running process ends. So here lays my question: How can i give an input to an process when it's running? It doesn't necessarily needs to be by means of an bash script i just want to automate this.