Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 May 2007 10:35:44 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Nino Ivanov <niivanov@gmx.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Piping across machines? - a suggestion
Message-ID:  <20070516153543.GB60025@dan.emsphone.com>
In-Reply-To: <000501c797c8$2492c3c0$d900000a@eniac>
References:  <000501c797c8$2492c3c0$d900000a@eniac>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070516153543.GB60025>