| [ WWW ] in KIDS 글 쓴 이(By): steel (Hwang I.Y.�x) 날 짜 (Date): 1995년09월07일(목) 03시21분15초 KDT 제 목(Title): Re) shell 에서 cgi를 수행하려면 ? Shell로 cgi를 만든 예제는 NCSA서버 /cgi-bin밑에 있지 않나요? finger라든가...아니믄 하찮은 date같은거라두...쩝 그리구, archie gateway중에 shell로 만든것도 있을거에요. 어디 있는지는 까먹어서...쩝 여기저기 뒤지면 있을텐데..음냐. finger를 보시면, #!/bin/sh FINGER=/usr/ucb/finger echo Content-type: text/html echo if [ -x $FINGER ]; then if [ $# = 0 ]; then cat << EOM <TITLE>Finger Gateway</TITLE> <H1>Finger Gateway</H1> <ISINDEX> This is a gateway to "finger". Type a user@host combination in your browser's search dialog.<P> EOM else echo \<PRE\> $FINGER "$*" fi else echo Cannot find finger on this system. fi /cgi-bin/finger를 그대로 긁어 버렸어용~ InYong, Sincerely. finger -l iyhwang@hanul.chungnam.ac.kr or http://ice.chungnam.ac.kr/~iyhwang/ |