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 >
Wrap
Text File
|
2017-09-21
|
668b
|
45 lines
#!/bin/sh
#
# file: htimage
# auth: brad burdick (bburdick@radio.com)
# desc: front-end for host/os independent binary usage
#
no_htimage() {
echo "Status: 404"
echo "Content-type: text/html"
echo ""
echo "<title>Not Found</title>"
echo "<h1>404: Not Found</h1>"
echo "<hr>"
echo "The requested URL was not found on the server."
exit 1
}
os=`/bin/uname -s`
htimage_bin='(none)'
case $os in
'IRIX')
htimage_bin='htimage.irix'
;;
'SunOS')
if [ "`/bin/uname -r | /bin/grep '^5'`" ] ; then
htimage_bin='htimage.sol2'
fi
;;
*)
no_htimage
;;
esac
cgi_base=`pwd`
exec $cgi_base/$htimage_bin ${1+"$@"}
# should never get here...
exit 1