I'm running some simulations which require manual keyboard input to change the parameters (annoyingly).
Is there a way to simulate keyboard presses, so that I can run the simulations with a bash script?
Turns out I could do from bash all along:
./program << ENDINPUT
$input1
$input2
$input3
ENDINPUT