From owner-freebsd-questions Sun Oct 6 6:15:35 2002 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 B3D3237B401 for ; Sun, 6 Oct 2002 06:15:33 -0700 (PDT) Received: from fep1.cogeco.net (smtp.cogeco.net [216.221.81.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id C10BF43E81 for ; Sun, 6 Oct 2002 06:15:32 -0700 (PDT) (envelope-from dlavigne6@cogeco.ca) Received: from d226-42-146.home.cgocable.net (d226-42-146.home.cgocable.net [24.226.42.146]) by fep1.cogeco.net (Postfix) with ESMTP id 54E8C6CAB; Sun, 6 Oct 2002 09:15:31 -0400 (EDT) Date: Sun, 6 Oct 2002 09:16:43 -0400 (EDT) From: Dru X-X-Sender: dlavigne6@dhcp-17-14.kico2.on.cogeco.ca To: Lord Raiden Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Event Trigger In-Reply-To: <4.2.0.58.20021006013105.009687c0@pop.voyager.net> Message-ID: <20021006091025.Y1552-100000@dhcp-17-14.kico2.on.cogeco.ca> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 6 Oct 2002, Lord Raiden wrote: > Hi. I'm looking for a simple way to implement a trap and trigger so to > speak. I'm wanting to setup the system so that the moment it detects a > certain event in the system, it immediately executes another script or > program to do something else, but not before, not after. I thought about > Cron, but the thing is, I don't know when these events will happen so since > they're so random, I need something to identify them then immediately run > another script or program at that exact moment. Any suggestions? I haven't used it myself, but this was what the Expect language was designed for. You'll find it in /usr/ports/devel/expect. These will also get you started if you decide to give it a go: http://expect.nist.gov http://www.samag.com/documents/s=7237/sam0207a/0207a.htm Dru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message