질문과 답변

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 12440
RMVXA 파티 캐릭터 들이 줄줄이 따라오는 스크립트 어떻게 지우죠? 3 비극의 공연 2012.01.14 2753
RMVXA 2가지 버그를 발견했습니다. 2 빙룡군 2012.01.14 3138
RMXP XAS3.9캐릭터문제 해결방법좀; 용자건담 2012.01.14 2656
RMVX 캐릭터의 현재 위치 기억할수 없나요? 2 가로니 2012.01.14 2486
RMVX ATB 스크립트 사용 중인데 상태이상에 대해 질문이 있습니다. 샛별 2012.01.14 2571
RMVX 배에 탑승시에는 몬스터와 전투 안되나요? 1 가로니 2012.01.13 2935
사이트 이용 플래시 게임 플래시 다운 2 근희 2012.01.13 2634
RMXP 퀘스트가 반복되네요. 퀘스트를 멈추는 방법좀요. 6 난몰라 2012.01.13 1762
RMVX 뱀파이어 sbabs에서 스킬 쓸 때 무기 아이콘 뜨게할 순 없나요? 닉네임은2와20 2012.01.13 2714
기타 안넹하세요~ SRPG 95 툴에 대한 몇가지 질문 몇가지 하겠습니다. 2 내가건덕 2012.01.12 2817
RMXP xp엑터 1 unuseid 2012.01.12 2689
RMVX 조건분기 오류 5 ba람이 2012.01.12 2698
GM 게임 만드는 방법좀 알려주세요...... 5 근희 2012.01.12 2720
RMXP RPG문의 2 포이즌리듬이 2012.01.11 2910
RMVX RPGVX노비타 바이오하자드 맵 1 SOUTHERNCROSS 2012.01.11 3732
RMVX 어둡게하는것 3 불량토깡 2012.01.11 2999
RMXP XP압축파일 실행오류와 스크립트에디터 한국어 부분... 1 님믹 2012.01.11 2815
RMVX 마을 이름을 바뀌게 하고 싶어요 2 가는이 2012.01.10 2861
RMVX 변수를 이용한 아이템구입 1 GTGs 2012.01.10 2186
RMVX 스위치 에따라서 스크립트 켰다 껏다 할수있을까요? 1 상생 2012.01.09 2941
Board Pagination Prev 1 ... 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 ... 516 Next
/ 516