echo 'some special log output' | xargs logger
My release is openSUSE 42.1, where is my logger to find? There is not exist a file named /var/log/messages (Like Slackware linux I used.) Per Jessen writes:
Billy.Zheng(zw963) wrote:
From logger command man:
logger - a shell command interface to the syslog(3) system log module
So, I want to use this command to write log to syslog.
following is a test:
$: echo 'some special log output' |logger
but, i could not found anything about my log in /var/log/.
From the man page:
logger [options] [message]
For your test to work:
$: echo 'some special log output' | xargs logger
-- Per Jessen, Zürich (6.0°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland.
-- Geek, Rubyist, Emacser Homepage: http://zw963.github.io -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org