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

4번째 줄: 4번째 줄:
*일반적으로.. 0이면 정상, 1(또는 그 이상)이면 비정상
*일반적으로.. 0이면 정상, 1(또는 그 이상)이면 비정상


==예시: [[C 언어]]==
==예시 1: [[C 언어]]==
*0: EXIT_SUCCESS
*0: EXIT_SUCCESS
*1: EXIT_FAILURE<ref>http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html</ref>
*1: EXIT_FAILURE<ref>http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html</ref>


==예시: [[Nagios]]==
==예시 2: [[Nagios]]==
*0: OK
*0: OK
*1: Warning
*1: Warning
14번째 줄: 14번째 줄:
*3: Unknown<ref>https://nagios-plugins.org/doc/guidelines.html</ref>
*3: Unknown<ref>https://nagios-plugins.org/doc/guidelines.html</ref>


==예시: [[윈도우]]==
==예시 3: [[윈도우]]==
*0: The operation completed successfully.
*0: The operation completed successfully.
*1: Incorrect function.
*1: Incorrect function.

2014년 3월 17일 (월) 01:24 판

1 개요

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

2 예시 1: C 언어

  • 0: EXIT_SUCCESS
  • 1: EXIT_FAILURE[1]

3 예시 2: Nagios

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

4 예시 3: 윈도우

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

5 같이 보기

6 주석

7 참고 자료

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