From owner-freebsd-questions@FreeBSD.ORG Mon May 30 06:37:49 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 C5E8A16A41C for ; Mon, 30 May 2005 06:37:49 +0000 (GMT) (envelope-from fquest@ccstores.com) Received: from mail.qcislands.net (mail.qcislands.net [209.53.238.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9631B43D1F for ; Mon, 30 May 2005 06:37:49 +0000 (GMT) (envelope-from fquest@ccstores.com) Received: from [209.53.238.235] (helo=[192.168.1.109]) by mail.qcislands.net with esmtp (Exim 4.51) id 1DcduA-0007Z8-8M; Sun, 29 May 2005 23:37:42 -0700 Message-ID: <429AB4BD.9030108@ccstores.com> Date: Sun, 29 May 2005 23:37:49 -0700 From: Jim Pazarena User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-local_scan: locally submitted (235) Subject: syslogd and pipe to email 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: Mon, 30 May 2005 06:37:49 -0000 I would like to email some kernel.warning messages to myself via the pipe action in syslog.conf, but I'm getting hung up on the fact that the pipe stays open (unless I HUP syslogd). The man page suggests that a script wrapper can be written to capture one line output and exit, but I wonder if there is any other method, such as an option/flag I am missing to terminate the pipe after, say, 30 seconds? I would rather have a script which waits at least 30 seconds before terminating rather than after one line, because some of the records I am looking for are multi-line, and I'm not sure if a script can be made to timeout. TIA