질문과 답변

Extra Form

가끔 스크립트 중에 일부에서 발견되곤하는데 뭐하는 건지를 알 수가 없네요.

Comment '2'
  • ?
    Alkaid 2010.10.08 16:45

    외부명령을 실행하는 것 같습니다.  일단 ruby-doc.org에 있는 설명을 보면:


    exec(command [, arg, ...])
    Replaces the current process by running the given external command. If exec is given a single argument, that argument is taken as a line that is subject to shell expansion before being executed. If multiple arguments are given, the second and subsequent arguments are passed as parameters to command with no shell expansion. If the first argument is a two-element array, the first element is the command to be executed, and the second argument is used as the argv[0] value, which may show up in process listings. In MSDOS environments, the command is executed in a subshell; otherwise, one of the exec(2) system calls is used, so the running command may inherit some of the environment of the original program (including open file descriptors).

    exec "echo *" # echoes list of files in current directory
    # never get here

    exec "echo", "*" # echoes an asterisk
    # never get here

  • ?
    녹색주머니 2010.10.08 19:23

    감사합니다...

     

    영어는 쥐약이므로 열심히 공부해야겠네요.


List of Articles
종류 분류 제목 글쓴이 날짜 조회 수
공지 묻고 답하기 가이드 습작 2014.06.14 12392
RMVX 상점에서 한 아이템을 사면 그 안에서 여러가지 아이템중 하나가 랜덤하게 나오는 방법 아시는 분 2 렌시아 2010.10.22 918
RMVX avi 실행이 왜 안되는걸까요?? 너를위한 2010.10.21 862
RMVX 캐릭터 추가하는 방법...... 1 미노 2010.10.20 914
RMVX 알림이나 이벤트 또는 퀘스트 목록을 특정한 키를 누르면... 하는 스크립트 없나요? 4 세데르 밀리스 2010.10.19 914
RMVX 데미지계산식 스크립트.. 2 크런키맛아듀크림 2010.10.17 864
RMVX 아이템 수량퀘스트 1 사이킥 2010.10.16 868
RMVX 스크립트 관련 질문입니다. 3 녹색주머니 2010.10.16 745
RMVX 아이콘 1,2,3으로 어떻게 늘려요?? 몬헌기린셋 2010.10.16 830
RMVX 테스트게임 느리게 될 경우에요, 2 별33 2010.10.15 748
RMVX Rpg Vx 렉 방지하는 법좀, 최적화 하는 법좀;; 4 명상합시다 2010.10.13 4026
RMVX 타이틀에 궁금한게 있는데 4 파이어 2010.10.13 794
RMVX 몇가지 궁금한 점 좀 알려주세요. 2 아타락시아 2010.10.12 702
RMVX 사이드뷰 3.4 + ATB 1.2 버전 몬스터 4 하늘풍선 2010.10.12 978
RMVX 바다위를 랜덤으로 움직이는 배.. 5 난천 2010.10.09 848
RMVX 열쇠를 사용하고나서는 열쇠가필요하다는말이뜨지않게 어떻게하죠 2 프라임헌터즈 2010.10.09 839
RMVX 맵 장소이동 시 이벤트 위치 초기화 되는 문제 1 명상합시다 2010.10.09 851
RMVX 변수1과 변수2를 변수3에 대입하기 7 곰테니 2010.10.09 698
RMVX 스크립트 중 exec라는 명령이 무엇인가요? 2 녹색주머니 2010.10.08 701
RMVX 폴더내의 파일명을 확인하는 방법이 알고 싶습니다. 녹색주머니 2010.10.08 840
RMVX ORBS 스크립트를 쓰는데 에러가.. darkwell 2010.10.07 660
Board Pagination Prev 1 ... 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 Next
/ 127