Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cmn_err(1M) — Motorola System V 88k Release 4 Version 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

cmn_err(1M)  —  ADMINISTRATOR COMMANDS

NAME

cmn_err − Print strings to stderr in form of cmn_err(D3DK)

SYNOPSIS

cmn_err CE_CONT [strings ...]
cmn_err CE_NOTE [strings ...]
cmn_err CE_WARN [strings ...]
cmn_err CE_PHASE_START [strings ...]
cmn_err CE_PHASE_END [strings ...]
cmn_err CE_PANIC [strings ...]

DESCRIPTION

Print all strings from the command line to stderr in the same form, cmn_err(D3DK) would print them to the system console. Strings are separated by single blanks, and a newline character is automatically added to the last string. 

EXAMPLES

The following script makes calls to cmn_err(1M):

eval ‘drv_getparm -b CPU_FRU_STATUS‘
cmn_err CE_PHASE_START $FRU_NAME ": SCSI : Disk tests"
cmn_err CE_WARN $FRU_NAME ": SCSI : Disk test failed on disk 0"
cmn_err CE_PHASE_END $FRU_NAME ": SCSI : Disk tests"

The caller might expect output on stderr similar to:

>> PHASE START (Jan 13,1994 03:55:13 GMT)
>> MVME187 : SCSI : Disk tests
 WARNING: MVME187 : SCSI : Disk test failed on disk 0
 >> MVME187 : SCSI : Disk tests
>> PHASE END (Jan 13,1994 03:55:23 GMT)

EXIT CODES

Normally, cmn_err(1M) exits with a status code of 0.  In cases of errors, or the CE_PANIC call, the exit status will be 1. 

NOTE

cmn_err(1M) can only be executed by the (effective) super user. 

SEE ALSO

cmn_err(D3DK)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026