home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 26.ddi / root.3 / usr / ucb / hostname < prev    next >
Encoding:
Text File  |  1990-12-20  |  590 b   |  25 lines

  1. #! /sbin/sh
  2. #    Copyright (c) 1990 UNIX System Laboratories, Inc.
  3. #    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T
  4. #      All Rights Reserved
  5.  
  6. #    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF
  7. #    UNIX System Laboratories, Inc.
  8. #    The copyright notice above does not evidence any
  9. #    actual or intended publication of such source code.
  10.  
  11. # Copyright (c) 1988, Sun Microsystems, Inc.
  12. # All Rights Reserved.
  13.  
  14. #ident    "@(#)//usr/ucb/hostname.sl 1.1 4.0 12/08/90 22306 AT&T-USL"
  15.  
  16.  
  17. if [ $# -eq 0 ]; then
  18.     uname -n
  19. elif [ $# -eq 1 ]; then
  20.     uname -S $1
  21.      else
  22.     echo Usage: hostname [name]
  23.     exit 1
  24. fi
  25.