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.bin-link
< prev
next >
Wrap
Text File
|
2017-09-21
|
885b
|
53 lines
#!/bin/sh
#
# file: imagemap
# auth: brad burdick (bburdick@radio.com)
# desc: front-end for host/os independent binary usage
#
no_imagemap() {
echo "Status: 404"
echo "Content-type: text/html"
echo ""
echo "<title>Not Found</title>"
echo "<h1>404: Not Found</h1>"
echo "<hr>"
echo "Unable to execute imagemap program for this server."
exit 1
}
os=`/bin/uname -s`
imagemap_bin='unknown'
case $os in
'IRIX')
imagemap_bin='imagemap.irix'
;;
'SunOS')
# sunos 5.x
if [ "`/bin/uname -r | /bin/grep '^5'`" ] ; then
imagemap_bin='imagemap.sol2'
fi
;;
'SINIX-Y')
imagemap_bin='imagemap.sinix'
;;
*)
no_imagemap
;;
esac
if [ "$SCRIPT_FILENAME" != "" ] ; then
cgi_base=`dirname $SCRIPT_FILENAME`
else
cgi_base=`dirname $SCRIPT_NAME`
fi
exec $cgi_base/$imagemap_bin ${1+"$@"}
# should never get here...
exit 1