#! /bin/csh -f # # Filename: sendds # # Programmer: Br. David Carlson # # Date: March 26, 1994 # # This C shell program sends to stillman 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 David Stillman cat "$argv[1]" | mail stillman else echo "Cannot read file" "$argv[1]" endif