Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Jan 152010

How to send message to a syslog


Basically you need to use the logger command, e.g.

logger "have fun with logger"

You will find the log went to /var/log/messages

Jan 15 23:08:34 www john: have fun with logger

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>