I was wondering if there's a way to write a command to the terminal from a c++ program. I'd like to be able to have some kind of loop with a Makefile, so the last command on a makefile runs the makefile again. Otherwise, is there a way to do it in C, Perl, or any other language (although I'd prefer C or Perl because I'm familiar with them). Or, is there a way to make a makefile loop?
Thanks for any answers!