질문과 답변

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 12472
RMVX 스크립트 관련 질문입니다. 3 녹색주머니 2010.10.16 746
RMVX 아이콘 1,2,3으로 어떻게 늘려요?? 몬헌기린셋 2010.10.16 830
RMXP 스크립트 소수(실수)를 정수로 하는 방법.. 3 코아 코스튬 2010.10.16 1007
RMXP 맵표시스크립트움기는법좀.. 2 애송이 2010.10.16 544
RMXP 메세지 관련 질문이에요 2 물개인간 2010.10.16 937
RMXP 두개의 아이템을 임의로 선택후 조합방법점 알려주세요. 미스터Joker 2010.10.16 703
RMVX 테스트게임 느리게 될 경우에요, 2 별33 2010.10.15 748
RMXP 스크립트 아시는분들 이부분 해석좀 해주세요 5 EE!! 2010.10.14 604
RMXP 퀘스트만드는법 2 게임초초초초봉 2010.10.13 1001
RMVX Rpg Vx 렉 방지하는 법좀, 최적화 하는 법좀;; 4 명상합시다 2010.10.13 4034
RMVX 타이틀에 궁금한게 있는데 4 파이어 2010.10.13 795
기타 온라인rpg게임 어떻게 만듬? 2 Cail Arial 2010.10.13 1805
RMVX 몇가지 궁금한 점 좀 알려주세요. 2 아타락시아 2010.10.12 702
RMXP 시작하자마자 대화창이 떠서 미치겠는데.. 4 수야 2010.10.12 780
RMVX 사이드뷰 3.4 + ATB 1.2 버전 몬스터 4 하늘풍선 2010.10.12 978
RM2k3 RPG2003 을 다운했는데 4 프라임헌터즈 2010.10.10 2007
기타 아프리카 방송을시작하려는데요.. 4 나여 2010.10.10 1588
RMXP 시작하자마자 혼자 생각하는걸 만들고 싶은데요 3 수야 2010.10.09 876
RMVX 바다위를 랜덤으로 움직이는 배.. 5 난천 2010.10.09 848
RMVX 열쇠를 사용하고나서는 열쇠가필요하다는말이뜨지않게 어떻게하죠 2 프라임헌터즈 2010.10.09 839
Board Pagination Prev 1 ... 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 ... 517 Next
/ 517