home *** CD-ROM | disk | FTP | other *** search
/ Internet 1996 World Exposition / park.org.s3.amazonaws.com.7z / park.org.s3.amazonaws.com / cgi-bin / Japan / Pub / htimage.bin-link < prev    next >
Text File  |  2017-09-21  |  668b  |  45 lines

  1. #!/bin/sh
  2. #
  3. #  file: htimage
  4. #  auth: brad burdick (bburdick@radio.com)
  5. #  desc: front-end for host/os independent binary usage
  6. #
  7.  
  8. no_htimage() {
  9.     echo "Status: 404"
  10.     echo "Content-type: text/html"
  11.     echo ""
  12.  
  13.     echo "<title>Not Found</title>"
  14.     echo "<h1>404: Not Found</h1>"
  15.     echo "<hr>"
  16.     echo "The requested URL was not found on the server."
  17.  
  18.     exit 1
  19. }
  20.  
  21. os=`/bin/uname -s`
  22. htimage_bin='(none)'
  23.  
  24. case $os in
  25.     'IRIX')
  26.         htimage_bin='htimage.irix'
  27.         ;;
  28.     'SunOS')
  29.         if [ "`/bin/uname -r | /bin/grep '^5'`" ] ; then
  30.             htimage_bin='htimage.sol2'
  31.         fi
  32.         ;;
  33.     *)
  34.         no_htimage
  35.         ;;
  36. esac
  37.  
  38. cgi_base=`pwd`
  39.  
  40. exec $cgi_base/$htimage_bin ${1+"$@"}
  41.  
  42. # should never get here...
  43. exit 1
  44.  
  45.