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 / imagemap.sh < prev   
Linux/UNIX/POSIX Shell Script  |  2017-09-21  |  484b  |  24 lines

  1. #!/bin/csh -f
  2.  
  3. set path0 = $0
  4. set path1 = $path0:h
  5. set path2 = $path1:h
  6. set path3 = $path2:h
  7. set cgidir = $path3:t
  8.  
  9. #echo "" >> /tmp/imagemap.log
  10. #echo $path1 >> /tmp/imagemap.log
  11. #echo $path2 >> /tmp/imagemap.log
  12. #echo $path3 >> /tmp/imagemap.log
  13. #echo $cgidir >> /tmp/imagemap.log
  14.  
  15. if ( $cgidir == "cgi-bin" ) then
  16.     setenv SCRIPT_NAME $path3/imagemap
  17.     chdir $path3
  18.     exec $path3/imagemap $*
  19. else
  20.     echo "context-type: text/plain"
  21.     echo ""
  22.     echo "Can not locate imagemap binary"
  23. endif
  24.