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
Wrap
Linux/UNIX/POSIX Shell Script
|
2017-09-21
|
484b
|
24 lines
#!/bin/csh -f
set path0 = $0
set path1 = $path0:h
set path2 = $path1:h
set path3 = $path2:h
set cgidir = $path3:t
#echo "" >> /tmp/imagemap.log
#echo $path1 >> /tmp/imagemap.log
#echo $path2 >> /tmp/imagemap.log
#echo $path3 >> /tmp/imagemap.log
#echo $cgidir >> /tmp/imagemap.log
if ( $cgidir == "cgi-bin" ) then
setenv SCRIPT_NAME $path3/imagemap
chdir $path3
exec $path3/imagemap $*
else
echo "context-type: text/plain"
echo ""
echo "Can not locate imagemap binary"
endif