This shell script runs all four steps required to compile, link, and run our little test program, and detects errors, stopping the whole procedure if any step fails. __________________________________________________________________________ #!/bin/tcsh echo "cc -c work.c" cc -c work.c if ($status != 0) exit echo "cc -c use.c" cc -c use.c if ($status != 0) exit echo "cc work.o use.o -o program" cc work.o use.o -o program if ($status != 0) exit echo "running program ..." program echo "program exitted with status "$status __________________________________________________________________________ remember that it needs to be "chmod +x"-ed