From owner-freebsd-questions@FreeBSD.ORG Tue May 31 22:15:56 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 D6B1C16A41F for ; Tue, 31 May 2005 22:15:56 +0000 (GMT) (envelope-from dannyman@toldme.com) Received: from shiva.nextrials.com (shiva.nextrials.com [64.81.74.145]) by mx1.FreeBSD.org (Postfix) with ESMTP id B001443D55 for ; Tue, 31 May 2005 22:15:56 +0000 (GMT) (envelope-from dannyman@toldme.com) Received: from [192.168.1.102] (mito.sr.nextrials.com [192.168.1.102]) by shiva.nextrials.com (Postfix) with ESMTP id 392603C2872; Tue, 31 May 2005 15:15:56 -0700 (PDT) Message-ID: <429CE215.6090904@toldme.com> Date: Tue, 31 May 2005 15:15:49 -0700 From: Danny Howard User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050517) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jim Pazarena References: <429AB4BD.9030108@ccstores.com> In-Reply-To: <429AB4BD.9030108@ccstores.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: 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: Tue, 31 May 2005 22:15:57 -0000 Jim Pazarena wrote: > 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. Jim, Even without setting up some sort of fancy interrupt thing, of course you can get a script to time out. In fact, I think you'd WANT the script to time out, even if it was getting input from syslog, because if syslog were spewing warning messages, you'd want the script to let go and send its warnings. Script would look something like: to=30 while( to > 0 ) output .= sleep 1 to-- do send-email Cheers, -danny -- http://dannyman.toldme.com/