That would suggest the OP just needs to look in the right places to find the messages logged.
Where is the `correct place' to found the `logger' command message on openSUSE 42.1? Thanks. Per Jessen writes:
Luuk wrote:
On 28-02-16 16:35, Per Jessen wrote:
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
Could you explain why this xargs is needed? (because it seems to work without it, on my system....)
Yep, you're right, according to the man page, logger defaults to reading from stdin when no message is specified and '-f' isn't used.
That would suggest the OP just needs to look in the right places to find the messages logged.
-- Per Jessen, Zürich (5.4°C) http://www.hostsuisse.com/ - virtual servers, 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