#! /bin/csh -f # # Filename: senddc # # Programmer: Br. David Carlson # # Date: March 26, 1994 # # This C shell program sends to carlsond the file given as the # command line parameter. # if ($#argv != 1) then echo "One parameter needed, namely the file to send" else if (-r "$argv[1]") then # test if we can read this file echo Sending "$argv[1]" to Br. David Carlson cat "$argv[1]" | mail carlsond else echo "Cannot read file" "$argv[1]" endif