Hey,
C noob here. I'm trying to simulate a ctrl+ keypress into a running application.
Quick example:
My problem is that the rundb program needs the user to type ctrl-b then s to actually start executing. What is the best way to handle this automatically? Some sort of fork/pipe?Code:#include <stdio.h> int main (void) { system("/usr/local/bin/rundb"); }
Thanks!