질문과 답변

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 21133
RMVXA 스크립트가 에러 뜹니다. 2 file 네트 2014.11.16 305
RMVX 스크립트가 아닌 이벤트로 랜덤 이동하는 이벤트에 광원 효과를 주고싶습니다. 4 쿄우키 2014.02.17 959
RMVXA 스크립트가 실행된 것을 인식하는 방법 1 흰강아지 2015.01.23 152
RMXP 스크립트가 사용이 안됩니다. 16 file 이룩 2014.01.12 912
RMVX 스크립트가 뭐죠? 1 모린아 2011.02.04 795
RMXP 스크립트=정기적병렬처리 이벤트? 3 stonesoup 2012.04.19 4014
RMMV 스크립트/플러그인 도움 없이 아오오니 인공지능 만들어 내는 법 1 투척민 2016.12.28 513
RMVX 스크립트..영어 해석좀.ㅠㅠ 4 dlwog2 2014.06.03 439
RMVXA 스크립트-프론트뷰 전투를 5인 대전으로 하고 싶습니다! 콘크리트뺏어라브라우니 2013.05.25 778
RMVXA 스크립트) 세이브 파일 저장시 삭제->저장 이 아니라 해당파일에 덮어씌우기 안되나요? 엽여비소엽 2017.01.15 330
RMVXA 스크립트(RGSS3) 관련 질문 file nekio_o 2016.12.29 140
RMVXA 스크립트 호환될 수 있게 도와주세요 ㅠ SKT스피릿 2015.08.22 113
RMXP 스크립트 호출로 강제 세이브/로드시키려면? 4 하진 2012.07.02 1609
RMXP 스크립트 해석 부탁드립니다. 1 ssbest1015 2011.05.22 1383
RMVXA 스크립트 해석 부탁드립니다! 짧습니다! 1 니꺼해 2018.04.01 125
RMXP 스크립트 함수처리(?) 관련 질문 6 Lighna 2012.12.19 648
RMVXA 스크립트 한글화 후, 전투 중 '스킬'글자가 생성되지 않습니다. 2 file 봉지냥 2016.12.25 251
스크립트 한글 번역 질문. 3 file 꼭해볼테다 2013.10.20 959
RMVXA 스크립트 한글 글꼴 바꾸기 10 FreeRose 2012.05.13 4400
RMXP 스크립트 하는 방법좀 가르켜 주세요. 스크립트가 머죠? 8 난몰라 2011.12.26 1977
Board Pagination Prev 1 ... 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 ... 518 Next
/ 518