还剩1页未读,继续阅读
文本内容:
sloginfoPrintmessagesfromthesystemlogSyntax:sloginfo[-chtw][-mmajor[:minor]][-snum][filename]Runson:QNXNeutrinoOptions:-cClearthelogbufferafterdisplayingallwaitingevents.-hPrintunformattedentriesinhexadecimal.Bydefaulttheyreprintedindecimal.-mmajor[:minor]Displayonlytheeventswiththegivenmajorcodeandoptionallyminorcode.Thedefaultistodisplayallevents.-snumDisplayeventswhoseseverityisintherangefrom0throughnum.Level0isthemostsevereandlevel7istheleast.-tPrinttimeforeventswithmillisecondresolution.-wWaitformoreeventstoarrive.filenameThenameofthefilecontainingraweventsdefault:/dev/slog.Description:Thesloginfoutilityprintsthecontentsofthesystemlogbuffermanagedbysloggerwhichmustberunningtorecordthesemessages.Bydefaultsloginfoprintsallmessagesandexits.Youcanusethe-woptiontohaveitwaitformoremessages.Youcanusethe-mand-soptionstofilterthemessagestoprint.Thereare16millionmajorcodeswith4096minorcodesforeachmajorcode.Selectingjustamajorcodedisplaysmessageswithanyoftheminorcodesforthespecifiedmajorcode;specifyingmajorandminorcodesfilterstheoutputevenmore.YoucanusethemajorcodestodisplaymessagesforaspecificareasuchasTCP/IP.Themajorcodesaredefinedinthefilesgs/sogco,es・h〉.Ifafilenameisspecifiedsloginfotakesitsinputfromthatfileinsteadof/dev/slog.Itsassumedthatthefilecontainsrawsystemlogdatasavedbyaprogramoristhefilespecifiedinthe-loptiontoslogger.Examples:Printoutallsystemlogmessagesandexit:sloginfoPrintoutallsystemlogmessagesandwaitformoretoarriveprintingthemastheydo:sloginfo-wPrintoutallsystemlogmessagesclearthelogandexit:sloginfo-cDisplayonlysystemlogmessageswithaseverityof0123or4:sloginfo-s4Displaythesystemlogmessagesstoredinaspecificfile:sloginfo/var/logs/slogOFiles:/dev/slogThedefaultsystemlogfile.。
个人认证
优秀文档
获得点赞 0