[Linux]loggerコマンドの使い方

書式
logger -p syslog.info -t タグ名 "メッセージ内容"

使用例
# logger -p syslog.info -t arkgame “this is a test message"
# tail -f /var/log/messages

Apr 30 15:40:21 localhost arkgame[2695]: this is a test message

Linux

Posted by arkgame