From owner-freebsd-questions@FreeBSD.ORG Wed May 16 15:36:12 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2D51516A400 for ; Wed, 16 May 2007 15:36:12 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id E602A13C458 for ; Wed, 16 May 2007 15:36:01 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.1/8.13.8) id l4GFZi4R051276; Wed, 16 May 2007 10:35:44 -0500 (CDT) (envelope-from dan) Date: Wed, 16 May 2007 10:35:44 -0500 From: Dan Nelson To: Nino Ivanov Message-ID: <20070516153543.GB60025@dan.emsphone.com> References: <000501c797c8$2492c3c0$d900000a@eniac> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000501c797c8$2492c3c0$d900000a@eniac> X-OS: FreeBSD 6.2-STABLE User-Agent: Mutt/1.5.15 (2007-04-06) Cc: freebsd-questions@freebsd.org Subject: Re: Piping across machines? - a suggestion 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: Wed, 16 May 2007 15:36:12 -0000 In the last episode (May 16), Nino Ivanov said: > I am still a newbie in some respects, so maybe this idea is a moot > point or done already, but in case it is not, I'd like to suggest it: > > One nice thing about unix is this piping, like programX | programY | > programZ... > > Well, I just thought: Wouldn't it be interesting if this were > possible - in the same simplicity - over several machines as well? > Like, something similar to: machine1:programX | machine2:programY | > machine3:programZ... Machines could be identified by a name or an > IP-Address. If you have ssh configured to allow passwordless logins (either via .shosts or key-based authentication), this works as you would expect: ssh machine1 programX | ssh machine2 programY | ssh machine3 programZ Just remember to quote any file redirection or wildcard characters that you want the remote systems to process. -- Dan Nelson dnelson@allantgroup.com