질문과 답변

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 21146
RMVX 장소이동의 문제 1 jennty51 2010.10.05 614
RMVX VX에는 동영상을 재생시키는게 불가능한가요 ? 2 loutel 2010.10.06 674
RMVX 질문 3종세트 답변좀. 4 아타락시아 2010.10.06 813
RMVX 동영상이 재생이 되질않는군요. 4 loutel 2010.10.06 664
RMVX 전투 스테이터스 UI 질문입니다. 3 니노미야 2010.10.06 574
RMVX 캐릭터 이동에 발맞춰 이벤트가 이동하는 거 말이죠,, 4 Arowana 2010.10.06 1010
RMVX '답을 입력하는 시스템' 스크립 도와주세요 2 별33 2010.10.06 667
RMVX Vampyr SBABS 2 천운 2010.10.06 687
RMVX ORBS 스크립트를 쓰는데 에러가.. darkwell 2010.10.07 664
RMVX 폴더내의 파일명을 확인하는 방법이 알고 싶습니다. 녹색주머니 2010.10.08 845
RMVX 스크립트 중 exec라는 명령이 무엇인가요? 2 녹색주머니 2010.10.08 703
RMVX 변수1과 변수2를 변수3에 대입하기 7 곰테니 2010.10.09 701
RMVX 맵 장소이동 시 이벤트 위치 초기화 되는 문제 1 명상합시다 2010.10.09 854
RMVX 열쇠를 사용하고나서는 열쇠가필요하다는말이뜨지않게 어떻게하죠 2 프라임헌터즈 2010.10.09 840
RMVX 바다위를 랜덤으로 움직이는 배.. 5 난천 2010.10.09 855
RMVX 사이드뷰 3.4 + ATB 1.2 버전 몬스터 4 하늘풍선 2010.10.12 980
RMVX 몇가지 궁금한 점 좀 알려주세요. 2 아타락시아 2010.10.12 704
RMVX 타이틀에 궁금한게 있는데 4 파이어 2010.10.13 798
RMVX Rpg Vx 렉 방지하는 법좀, 최적화 하는 법좀;; 4 명상합시다 2010.10.13 4119
RMVX 테스트게임 느리게 될 경우에요, 2 별33 2010.10.15 755
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 127 Next
/ 127