X-Recipient: archive-cygwin@delorie.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 <proubeka@us.ibm.com>
To: cygwin@cygwin.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@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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@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@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

