This is the mail archive of the
cygwin
mailing list for the Cygwin project.
How to get a script file to use bash and ssh
- From: PaulHR <proubeka at us dot ibm dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 2 Sep 2010 12:10:58 -0700 (PDT)
- Subject: How to get a script file to use bash and ssh
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