#! /bin/sh # # Filename: senddc # # Programmer: Br. David Carlson # # Date: March 26, 1994 # # This Bourne shell program sends to carlsond the file given as the # command line parameter. # if [ $# -ne 1 ] then echo "One parameter needed, namely the file to send" elif test -r "$1" # test if we can read this file then echo Sending "$1" to Br. David Carlson cat "$1" | mail carlsond@acad1 else echo "Cannot read file" "$1" fi