int main(int argc, char* argv[]) { int fd; int status; time_t i; char cFileName[64]; char cTempName[64]; char cBuffer[1024]; char *p = cBuffer; char cContent[10240];
char *data; char keyWord[1024]; data = getenv("QUERY_STRING"); if(data==NULL) { PRintf("Content-Type:text/html
"); printf("not found!"); exit(1); }
sscanf(data, "keyname=%s&", keyword);
p += sprintf(p, "locate '%s' sed -e 's#^/usr/local/apache/htdocs#http://129.158.217.223#' sed -e 's#^.*$#<a href=&>&</a>#' > ", keyword); i = time(NULL);