File: Sysname.sh

package info (click to toggle)
tex-guy 1.2.4-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 5,676 kB
  • ctags: 2,778
  • sloc: ansic: 26,147; sh: 8,358; makefile: 663; awk: 78; perl: 63
file content (21 lines) | stat: -rwxr-xr-x 351 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

if [ -x ../config.guess ] ; then
  UNAME=../config.guess
  echo `hostname` \(`$UNAME`\)
else
  if [ -x /usr/uname ] ; then
    UNAME=/usr/uname
  else
    if [ -x /usr/bin/uname ] ; then
      UNAME=/usr/bin/uname
    fi
  fi
  if [ x"$UNAME" != x ]; then
    echo `$UNAME -n` \(`$UNAME``$UNAME -r`\)
  else
    echo hostname
  fi
fi

#EOF