Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Nov 2017 09:14:35 -0500
From:      Mike <the.lists@mgm51.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: sh script echo to syslog
Message-ID:  <a60e6243-739e-e737-f036-03312a5983c0@mgm51.com>
In-Reply-To: <5A036890.7090204@gmail.com>
References:  <5A036890.7090204@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a60e6243-739e-e737-f036-03312a5983c0>