From owner-freebsd-questions@freebsd.org Wed Nov 8 21:42:16 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 30206E5CAC8 for ; Wed, 8 Nov 2017 21:42:16 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E62A2689F1 for ; Wed, 8 Nov 2017 21:42:15 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [93.209.229.51] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1eCWyR-0007JY-TU for freebsd-questions@freebsd.org; Wed, 08 Nov 2017 21:29:24 +0100 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id vA8KTNl5002802 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 8 Nov 2017 21:29:23 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id vA8KTNWm002801 for freebsd-questions@freebsd.org; Wed, 8 Nov 2017 21:29:23 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Wed, 8 Nov 2017 21:29:23 +0100 From: Matthias Apitz To: freebsd-questions@freebsd.org Subject: Re: sh script echo to syslog Message-ID: <20171108202923.GA2753@c720-r314251> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-questions@freebsd.org References: <5A036890.7090204@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="liOOAslEiF7prFVr" Content-Disposition: inline In-Reply-To: <5A036890.7090204@gmail.com> X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.8.0 (2017-02-23) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 93.209.229.51 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Nov 2017 21:42:16 -0000 --liOOAslEiF7prFVr Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable El d=C3=ADa mi=C3=A9rcoles, noviembre 08, 2017 a las 03:26:56p. m. -0500, E= rnie Luzar escribi=C3=B3: > Hello list; >=20 > I have a sh script that I use echo "message text" and it shows on the=20 > terminal console that started the script. Thats ok, but I would like to= =20 > also have that same message posted the syslog. >=20 > How would I code that? What about 'man logger'? matthias --=20 Matthias Apitz, =E2=9C=89 guru@unixarea.de, =E2=8C=82 http://www.unixarea.d= e/ =E2=98=8E +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub 8. Mai 1945: Wer nicht feiert hat den Krieg verloren. 8 de mayo de 1945: Quien no festeja perdi=C3=B3 la Guerra. May 8, 1945: Who does not celebrate lost the War. --liOOAslEiF7prFVr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXmn7rBYYViyzy/vBR8z35Hb+nREFAloDaSAACgkQR8z35Hb+ nRFIAQ//VOJQ/T2Do/G614PZD14mWlmta4jq9ezWKYP4rDTR2j39Fh1QuXxVdYM6 6OpDCfpghtQFQ/3YpGffw2bdVIbQflg4QcIYZ3hWU0riA3yFDI2T6TB5x4g/MNh2 RaO+lP0L0QvMcljvWbEaryW1fpFZJJ92iiy/JG6eOm5PWYcNiLmVSZs2CMcsaAtk 3lRvFzwuB5PYlV9kpc/MiF8KJNLPkimFjPJ00Y6qgzXk0cf1XQASzUTOU2Qk2GHD 1F2iX4aOLjhcPrTtCC50Vjb8OOA+H+HuQgKXIVoqAr9ahA8LOfDgoIfzYBSFUxof m+Z2PYBPXnZ2hzJzoiTw1HF1vGue/mF1AIkCu76kkksNgaFo0+xh3+tSC4HuCfCb 0TMzAt26N303Vk6eozorI0KYkAVZh2cb31kAqS0aQnc0Txa5u1YjWdvUON0tS47Z 94W5hGuP1RiSj+MvT3Y2yB9HR6koftp00iQ5ZRpQMoAJ8/Xsr73M0g0SK/4vgB++ zZrcDFSJHSaP1a72BwS2Lrnpvqxcyz16U9VMoWpHVNYh+uegVaCjR97Bo8LW+8Wh KVsLoIH9uX5OW0zdb6VmiJdfgucQSyKIyX+lxPr1OW5oID9FTTyicIPF8EOjBC+2 NWzazHT2b6HhF1j9r06LhVEMuXiuVKa8kAtaII4vKMeaIrOE9cU= =8hhL -----END PGP SIGNATURE----- --liOOAslEiF7prFVr--