½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > Ä¿¹Â´ÏƼ > Áú¹®°ú´äº¯ »ó¼¼º¸±â
Ä¿¹Â´ÏƼ ±¸Àα¸Á÷
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
asp
CSS
html
mysql
jquery
image
Mobile
API
slide
°Ô½ÃÆÇ
¸Þ´º
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
°Ô½ÃÆÇŸÀÌƲ Áú¹®°ú´äº¯ / »ó¼¼º¸±â
Æ®À§ÅÍ·Î º¸³»±â
Ãßõ¼ö 172 | Á¶È¸¼ö 3,623 | µî·ÏÀÏ 2005-11-09 14:43:03

´Ð³×ÀÓ

sonkilho

À̸ÞÀÏ

tenderboy@sogang.ac.kr

Á¦¸ñ

cgi¿¡¼­ system ÇÔ¼ö ½ÇÇàÇÏ´Â °Í¿¡ ´ëÇÑ Áú¹®ÀÔ´Ï´Ù.
³»¿ë

ÇöÀç Á¦°¡ ÀÓº£µðµå º¸µå pxa255_star¸¦ ¾²°í ÀÖ½À´Ï´Ù.
Ä«¸Þ¶ó µå¶óÀ̹ö¸¦ ¿Ã¸®°í
shell¿¡¼­ '»çÁøÀ» Âï¾î¼­ ƯÁ¤ µð·ºÅ丮¿¡ ÀúÀåÇÏ´Â ¸í·É¾î'¸¦ ³»¸®¸é
Àß µÇ´Âµ¥ cgi»ó¿¡¼­ systemÇÔ¼ö¸¦ ÀÌ¿ëÇؼ­ ½ÇÇà½ÃÅ°¸é ±×³É Áö³ªÃÄ
°¡´Â±º¿ä system ÇÔ¼öÀÇ ½ÇÇà ÀÚü°¡ ¾ÊµÇ´Â°Å °°¾Æ¿ä.¹°·Ð test_camera´Â cgi-bin¿¡ Á¸ÀçÇÏ°í¿ä
printf("go")´Â ½ÇÇàÀÌ µÇ¼­ go¶ó´Â ¹®ÀÚ°¡ À¥»ó¿¡ ¶ßÁö¸¸ system ÇÔ¼ö°¡ ½ÇÇàÀÌ ¾ÈµÇ¿ä Á¶¾ð ºÎŹµå¸³´Ï´Ù.

html ¹®¼­´Â

<html>
    <head>
        <title> go </title>
    </head>
   
    <body>
            <form method = get action = "cgi-bin/go.cgi">
            <input type = "hidden" name = "direction" value = "go">
            <input type = "submit" value = "   go    ">
        </form>
    </body>
</html>

go.cgi´Â ÀÌ·¸½À´Ï´Ù.

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/mman.h>
#include <asm/fcntl.h>

   
int main(void)
{
    char *value;
   
    printf("Content-type :text/html\n\n");
   
    value = (char *)getenv("QUERY_STRING");
   
    if(strcmp(value,"go")){
        system("./test_camera");
        printf("go\n");
    }
   
    printf("<html><head><title> go </title></head>\n");
    printf("<body>\n");
    printf("<form method = get action = go.cgi>");
    printf("<input type = hidden name = direction value =go>");
    printf("<input type = submit value =   Go   >");
    printf("</form>\n");
    printf("</body></html>\n");
   
    return 0;
}


 

Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
HappyCGI 2005-11-09 17:19:25
´ä±Û

CGI ÀÔ´Ï´Ù.
CGIÁß C·Î Á¦ÀÛµÈ ¾ð¾î´Â ÀúÈñ°¡ Áö½ÄÀÌ ºÎÁ·Çؼ­ ´äº¯À» µå¸±¼ö°¡ ¾ø³×¿ä.
Á˼ÛÇÕ´Ï´Ù.

ÀÌÀü°Ô½Ã±Û µµ¿ò Á» ºÎŹµå¸³´Ï´Ù.--;; 2005-11-07 21:24:18
´ÙÀ½°Ô½Ã±Û ÆÄÀϾ÷·Îµå·Î ÆÄÀÏÀ» ¿Ã¸±¶§ ... 2005-11-11 10:53:51