send key code to command line program os x bash script
- by Sandy Vanderbleek
I want to make a script that starts a program and then sends it key input.
#!/bin/bash
./program
(PRESS CONTROL-Z)
Is this possible? From what I've found I thought it might require key codes but I could be wrong.