home *** CD-ROM | disk | FTP | other *** search
/ norge.freeshell.org (192.94.73.8) / 192.94.73.8.tar / 192.94.73.8 / pub / computers / 3b2 / admerr < prev    next >
Text File  |  1985-05-23  |  395b  |  25 lines

  1. #    @(#)admerr    1.2    /sccs/src/cmd/sadmin/shell/s.admerr
  2. #    Issue a standard error message for an administrative command.
  3.  
  4. #!    chmod +x ${file}
  5.  
  6. if [ $# -lt 2 ]
  7. then
  8.     echo >&2 "Usage:  $0 command-name message ..."
  9.     exit 1
  10. fi
  11.  
  12. case $0 in
  13. */admerr | admerr )
  14.     type='ADMINISTRATIVE COMMAND'
  15.     ;;
  16. * )
  17.     type=SOFTWARE
  18. esac
  19.  
  20. cmd=$1
  21. shift
  22. exec /bin/echo >&2 "
  23. UNIX ${type} ERROR:    Call Repair.
  24.     ${cmd}:  $*\\n"
  25.