home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Mail / appnmail-1.8-Solaris / mailapp-utilities / sendmail-remote < prev    next >
Encoding:
Text File  |  1996-11-24  |  1000 b   |  29 lines

  1. #!/bin/sh
  2. ###############################################################################
  3. #
  4. # File:         sendmail-remote
  5. # RCS:          /usr/local/sources/CVS/mailapp-utilities/sendmail-remote,v 1.1.1.1 1996/11/24 14:56:17 tom Exp
  6. # Description:  A shell script to have mail sent from host 'remote'
  7. # Author:       Carl Edman
  8. # Created:      Sun Oct 16 09:54:59 1994
  9. # Modified:     Sun Oct 16 10:10:42 1994 (Carl Edman) cedman@freedom.princeton.edu
  10. # Language:     Text
  11. # Package:      N/A
  12. # Status:       Experimental
  13. #
  14. # (C) Copyright 1994, but otherwise this file is perfect freeware.
  15. #
  16. ###############################################################################
  17. remote=`echo $0|sed -n 's%^.*/sendmail-%%p'`
  18. if test "$remote" = ""
  19. then
  20.    echo "sendmail-remote must be invoked with a name of the form sendmail-foobar"
  21.    echo "where foobar is the name of the host from which the mail should be sent."
  22.    exit 1
  23. fi
  24. arg="/usr/lib/sendmail "
  25. for i do
  26.   arg="$arg '$i'"
  27. done
  28. rsh $remote $arg
  29.