질문과 답변

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 스크립트 입문, 문법에 관한 질문 3 딸기뱀 2012.02.02 1680
라이선스 RMVX 스크립트 저작권 관련 2 구찌토끼 2019.09.05 268
RMVX 스크립트 적용 2 비씨 2014.01.07 661
RMVX 스크립트 적용법 D_Dandy 2016.10.29 203
RMVX 스크립트 제발!!~ 3 르코 2011.01.14 572
RMVX 스크립트 조건분기 중 통행관련 조건분기 질문 4 도심 2011.01.11 1032
RMVX 스크립트 중 exec라는 명령이 무엇인가요? 2 녹색주머니 2010.10.08 703
RMVX 스크립트 중에 '레벨업 시 자세한 정보 나오는 스크립트' 를 사용하고 난 후에 쿠쿠밥솥 2011.11.12 1801
RMVX 스크립트 질문 3 file Skeleton's bone 2011.09.05 1681
RMVX 스크립트 질문입니다. 1 차진스 2011.03.09 749
RMVX 스크립트 짜기 12 Jhon 2011.10.11 1486
RMVX 스크립트 찾고있습니다. 1 아이리수 2012.08.11 1637
RMVX 스크립트 편집좀여... 2 ba람이 2011.11.13 870
RMVX 스크립트 하나만 질문할게요. 4 미즈 2012.08.02 952
RMVX 스크립트..영어 해석좀.ㅠㅠ 4 dlwog2 2014.06.03 439
RMVX 스크립트가 뭐죠? 1 모린아 2011.02.04 795
RMVX 스크립트가 아닌 이벤트로 랜덤 이동하는 이벤트에 광원 효과를 주고싶습니다. 4 쿄우키 2014.02.17 959
RMVX 스크립트가 충돌하는듯 합니다 3 file 유우니사막 2015.08.07 165
RMVX 스크립트가 호환이 안되는건가요 ㅜ? 질문드려요 6 CryingMISO 2010.09.08 4165
RMVX 스크립트랑 변수 1 nngh07 2011.02.06 654
Board Pagination Prev 1 ... 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 ... 127 Next
/ 127