sh script echo to syslog

Mike the.lists at
Thu Nov 9 14:14:46 UTC 2017

On 11/8/2017 3:26 PM, Ernie Luzar wrote:
> Hello list;
> I have a sh script that I use echo "message text" and it shows on the 
> terminal console that started the script. Thats ok, but I would like to 
> also have that same message posted the syslog.

The logger command, using the -s option, may be helpful for what you want.

More information about the freebsd-questions mailing list