source: trunk/athena/bin/tarmail/tarmail @ 2783

Revision 2783, 657 bytes checked in by epeisach, 35 years ago (diff)
Should use csh -f [changes.70 no 274 - jtkohl - audited by jik]
RevLine 
[2783]1#!/bin/csh -f
[8]2#
3#tar up files, pipe through btoa to mail.
4#recieve by saving mail in temp file, then "untarmail temp"
5if ($#argv < 3) then
6  echo "usage:  tarmail  mailpath  subject-string  directory-or-file-name(s)"
7  exit
8else
9  set mailpath = $1
10  echo mailpath = $mailpath
11  shift
12  set subject = $1
13  echo subject-string = $subject
14  shift
15  echo files = $*
16  tar cvf - $* | btoa | mail -s $subject $mailpath
17endif
18exit
19#
20#       $Source: /afs/dev.mit.edu/source/repository/athena/bin/tarmail/tarmail,v $
[2783]21#       $Author: epeisach $
[8]22#       $Locker:  $
[2783]23#       $Header: /afs/dev.mit.edu/source/repository/athena/bin/tarmail/tarmail,v 1.2 1990-03-26 13:45:47 epeisach Exp $
[8]24#
Note: See TracBrowser for help on using the repository browser.