#!/bin/csh /bin/csh set st=$status if ( $st == 0 ) then echo "Success!" else if ( $st == 1 ) then echo "I'm a failure!" endif