cgi에서 system함수를 사용하려고 합니다.

kihong09의 이미지

우선 소스 코드 입니다.

first.c
#include
#include
int main(){
system("mplayer /mnt/nfs/1.mpg");

first.html
[geshifilter-html]
      <head>
            <title>first!</title>
      </head>
      <body>
            <center><a href="/web/cgi-bin/first.cgi">thr first program!</a>
      </body>
[/geshifilter-html]

위와같이 코딩했구요.. 테스트용이라 최대한 간단하게만들어놨습니다..
mplayer를 임베디드장비에 포팅해서 사용중인데요~
usr/bin에다가 넣어놔서 어디서나 실행가능하게 해놨는데도
저렇게 하면 오류를 뿜어냅니다..
똑같은 system함수인데 cgi에서만 안돌아가는게 정말 이해가 안됩니다..ㅠㅠ

파일첨부는 오류메세지 입니다~

File attachments: 
첨부파일 크기
Image icon 111.jpg141.52 KB