logger "Hello world"See its man page for options Very handy for script that run in the background (or cron)
Programming Tips - bash: How can I write a message to /var/log/messages ... the syslog?
Date: 2013sep20
OS: Linux
Language: Bash
Q. bash: How can I write a message to /var/log/messages ... the syslog?
A. Use the logger command. Eg: