delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,SPF_HELO_PASS,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <29608244.post@talk.nabble.com> |
Date: | Thu, 2 Sep 2010 12:25:47 -0700 (PDT) |
From: | PaulHR <proubeka AT us DOT ibm DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: How to get a script file to use bash and ssh |
In-Reply-To: | <4C7FF7D0.6090304@bopp.net> |
MIME-Version: | 1.0 |
References: | <29608117 DOT post AT talk DOT nabble DOT com> <4C7FF7D0 DOT 6090304 AT bopp DOT net> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
Yes, that is correct. Jeremy Bopp-3 wrote: > > On 9/2/2010 2:10 PM, PaulHR wrote: >> >> I want to create script files that are not bound to my user id. I want >> to >> create over 20 different scripts files, one for each server I manage. I >> have uploaded keys to each server. So all I should have to is enter is >> the >> ssh command.... >> >> >> I have put in a file called MyOpenUp.bat the following... >> >> ++++++++++++++++++++++++++++++++++++++++ >> >> ssh {myServerId AT MyServerHostname} >> >> ++++++++++++++++++++++++++++++++++++++++ >> >> >> I have put that command in a file called MyOpenUp.init >> >> >> I have created a MyOpenUp.bat file with the following.... >> >> ++++++++++++++++++++++++++++++++++++++++ >> >> @echo off >> >> >> C: >> >> chdir C:\cygwin\bin >> >> bash --init-file MyOpenUp.init -i -l >> >> ++++++++++++++++++++++++++++++++++++++++ >> >> >> While the shell opens up all I get is.... >> >> cygwinId AT localhostname ~ >> >> $ > > It looks like you are trying to effectively create one shortcut per > remote host which you can run and automatically have it open an ssh > session to that host using a particular user specific to that host. Is > that a correct assessment? > > -Jeremy > > -- > 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 > > > -- View this message in context: http://old.nabble.com/How-to-get-a-script-file-to-use-bash-and-ssh-tp29608117p29608244.html Sent from the Cygwin list mailing list archive at Nabble.com. -- 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 |