From owner-freebsd-questions@FreeBSD.ORG Sun Oct 23 17:36:15 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A7A316A41F for ; Sun, 23 Oct 2005 17:36:15 +0000 (GMT) (envelope-from ecrist@secure-computing.net) Received: from grog.secure-computing.net (grog.secure-computing.net [216.243.161.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1F9143D45 for ; Sun, 23 Oct 2005 17:36:14 +0000 (GMT) (envelope-from ecrist@secure-computing.net) Received: from [192.168.1.100] (snipe.secure-computing.net [216.243.161.77]) (authenticated bits=0) by grog.secure-computing.net (8.13.1/8.13.1) with ESMTP id j9NHZpsr023607 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT); Sun, 23 Oct 2005 12:35:53 -0500 (CDT) (envelope-from ecrist@secure-computing.net) DomainKey-Signature: a=rsa-sha1; s=grog; d=secure-computing.net; c=nofws; q=dns; h=in-reply-to:references:mime-version:content-type:message-id:cc: content-transfer-encoding:from:subject:date:to:x-mailer:x-spam-status:x-spam-checker-version; b=IVLoPLHFTh0rHZ+UgTit9KKMhLzOnk4eVRgk5wAGLhillOwlPNGONhBMrPy06/ZeB VHuHTvl7oURjk9Zw8GUxw== In-Reply-To: <35c231bf0510230942x5ec4f65av941857bb211a9d04@mail.gmail.com> References: <35c231bf0510230942x5ec4f65av941857bb211a9d04@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v734) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <57D5EF6A-F685-4B56-850E-3A28B44A8188@secure-computing.net> Content-Transfer-Encoding: 7bit From: Eric F Crist Date: Sun, 23 Oct 2005 12:35:40 -0500 To: David Kirchner X-Mailer: Apple Mail (2.734) X-Spam-Status: No, score=-5.0 required=4.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on grog.secure-computing.net Cc: free bsd questions Subject: Re: writing to syslog from a shell script? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Oct 2005 17:36:15 -0000 On Oct 23, 2005, at 11:42 AM, David Kirchner wrote: > On 10/23/05, Eric F Crist wrote: > >> How could I write an entry to syslog from a shell script. For >> example, I want to write an entry stating that a command worked or >> didn't work, along with an error message. >> > > Check out logger(1) Thanks! That does exactly what I need! _______________________________________________________ Eric F Crist "I am so smart, S.M.R.T!" Secure Computing Networks -Homer J Simpson