Note: Check out the directory ../with-c for this in C-only, i.e., no system(3) or zsh, instead fprintf(3) - that solution is better (faster) than this. This directory contains the programs 'cont-from-c.c' and 'stop-from-c.c'. Those programs compile into 'cont-from-c' and 'stop-from-c'. If invoked, they call '../cont' and '../stop'; they do this with system(3). If ==> is the compilation through the Makefile, and --> is the execution of the result binaries, then: cont-from-c.c ==> cont-from-c --> ../cont stop-from-c.c ==> stop-from c --> ../stop