How do I create a syslog message?

How do I create a syslog message?
Answer
Use logger command which is a shell command interface to the syslog system log module. It makes or writes one line entries in the system log file from the command line. Last line will log a message in /var/log/message file if backup failed.
 

Tìm kiếm

Back
Top