www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4A4B1574.2060004@gmail.com> |
Date: | Wed, 01 Jul 2009 08:51:16 +0100 |
From: | Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com> |
User-Agent: | Thunderbird 2.0.0.17 (Windows/20080914) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Sending data to a script over SSH |
References: | <59BFA592-AAB6-4120-9339-C10F472CA385 AT pobox DOT com> |
In-Reply-To: | <59BFA592-AAB6-4120-9339-C10F472CA385@pobox.com> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Chap Harrison wrote: > I'm wondering how to send a script invocation followed by the clipboard > data that the script will read and transform. I know how to use ssh to > send a command to a remote system; I can do that from DOS. But is there > any way to say "run this command and, by the way, the data it needs is > right behind it"? Sort of like an input redirection with a HERE-doc, to > put it very loosely? SSh is a full bidirectional pipe, connected to the remote process. You can use any kind of redirection you like < ... commands ... > | ssh user AT host <scriptname> ssh <file user AT host <scriptname> getclip | ssh user AT host <scriptname> | putclip You might like to check the man page of those last two commands while you're at it ;-) *doubletake* Err, I mean, you might like to check the --help output from them. Couldn't find any documentation anywhere. cheers, DaveK -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |