"종료 상태 코드"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-==참고 자료== +==참고==))
36번째 줄: 36번째 줄:
<references/>
<references/>


==참고 자료==
==참고==
*https://en.wikipedia.org/wiki/Exit_status
*https://en.wikipedia.org/wiki/Exit_status
*http://www.php.net/manual/en/function.exit.php
*http://www.php.net/manual/en/function.exit.php

2017년 7월 21일 (금) 03:43 판

1 개요

exit status, return code, exit value
종료 상태, 종료 스테이터스, 반환 코드, 종료값, 리턴코드
  • 일반적으로.. 0이면 정상, 1(또는 그 이상)이면 비정상

2 예시 1: C 언어

  • 0: EXIT_SUCCESS
  • 1: EXIT_FAILURE[1]

3 예시 2: Bash

4 예시 3: Nagios 플러그인

  • 0: OK
  • 1: Warning
  • 2: Critical
  • 3: Unknown[4]

5 예시 4: 윈도우

  • 0: The operation completed successfully.
  • 1: Incorrect function.
  • 2: The system cannot find the file specified.
  • [5]

6 같이 보기

7 주석

8 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}