X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Message-ID: <4C7FF7D0.6090304@bopp.net> Date: Thu, 02 Sep 2010 14:15:28 -0500 From: Jeremy Bopp User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: How to get a script file to use bash and ssh References: <29608117 DOT post AT talk DOT nabble DOT com> In-Reply-To: <29608117.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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