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: <29608117.post@talk.nabble.com> Date: Thu, 2 Sep 2010 12:10:58 -0700 (PDT) From: PaulHR To: cygwin AT cygwin DOT com Subject: How to get a script file to use bash and ssh MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 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 ~ $ I am a cygwin newbie. I am sure it is me not understanding the man page correctly. What am I doing wrong? The Documentation did not help either. TIA -- View this message in context: http://old.nabble.com/How-to-get-a-script-file-to-use-bash-and-ssh-tp29608117p29608117.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