From owner-cvs-src@FreeBSD.ORG Fri Oct 24 03:01:50 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4C33F16A4D7; Fri, 24 Oct 2003 03:01:50 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D893B43FEC; Fri, 24 Oct 2003 03:01:36 -0700 (PDT) (envelope-from harti@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id h9OA1aXJ049861; Fri, 24 Oct 2003 03:01:36 -0700 (PDT) (envelope-from harti@repoman.freebsd.org) Received: (from harti@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id h9OA1aEa049860; Fri, 24 Oct 2003 03:01:36 -0700 (PDT) (envelope-from harti) Message-Id: <200310241001.h9OA1aEa049860@repoman.freebsd.org> From: Hartmut Brandt Date: Fri, 24 Oct 2003 03:01:36 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.sbin/nghook main.c nghook.8 X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Oct 2003 10:01:50 -0000 harti 2003/10/24 03:01:36 PDT FreeBSD src repository Modified files: usr.sbin/nghook main.c nghook.8 Log: Allow nghook to execute a program with the data socket connected to stdin and stdout instead of relaying the data. Now it is possible to say: nghook -e path: hook /usr/local/bin/foo arg1 arg2 and foo will have the hook to path: at file descriptors 0 and 1. Add an option to specify control messages to be send to the node before either executing the program or entering the data relay loop. Revision Changes Path 1.11 +70 -10 src/usr.sbin/nghook/main.c 1.15 +39 -3 src/usr.sbin/nghook/nghook.8