Am Sun, 28 Feb 2016 23:31:28 +0800 schrieb "Billy.Zheng(zw963)" <zw963@163.com>:
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/.
thanks.
Enter in first user terminal: peter@raven:~> sudo journald -f to follow last log entries, then enter in second user terminal peter@raven:~> logger -i This is my message \(from user peter\) you have to escape bash characters with special meaning (here the brackets) and you will got in the journal this entry Feb 28 17:35:16 raven peter[21210]: This is my message (from user peter) -- Mit freundlichen Grüßen Kind Regards Peter Ragosch -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org