int main() { int i; for (i = 1; i < 2; i++) { char com[256]; sprintf(com, "mpirun -machinefile goodmachines -allcpus Lindle2_%d", i); system(com); } }