home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume2 / compress4.0 / part2 / tarmail < prev    next >
Encoding:
Text File  |  1986-11-30  |  303 b   |  14 lines

  1. if test $# -lt 3; then
  2.   echo "Usage: tarmail mailpath \"subject-string\" directory-or-file(s)"
  3.   exit
  4. else
  5.   mailpath=$1
  6.   echo "mailpath = $mailpath"
  7.   shift
  8.   subject="$1"
  9.   echo "subject-string = $subject"
  10.   shift
  11.   echo files = $*
  12.   tar cvf - $* | compress | btoa | mail -s "$subject" $mailpath
  13. fi
  14.