delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
From: | "Gary R. Van Sickle" <g DOT r DOT vansickle AT worldnet DOT att DOT net> |
To: | <cygwin AT cygwin DOT com> |
References: | <1f97de60810141159u193de792pe496d7a044265738 AT mail DOT gmail DOT com> <gd2ucq$eck$1 AT ger DOT gmane DOT org> <013601c92e4d$f1a6cdd0$9601a8c0 AT CAM DOT ARTIMI DOT COM> <gd4e83$3hp$2 AT ger DOT gmane DOT org> |
Subject: | RE: cygwin shell scripting - how to pass values from command line to ssh remote command |
Date: | Wed, 15 Oct 2008 07:19:08 -0500 |
Message-ID: | <D2945A4C882849E49FED92F466029C06@DFW5RB41> |
MIME-Version: | 1.0 |
X-Mailer: | Microsoft Office Outlook 11 |
In-Reply-To: | <gd4e83$3hp$2@ger.gmane.org> |
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 |
Thorsten Kampe wrote: > * Dave Korn (Tue, 14 Oct 2008 23:41:05 +0100) > > Thorsten Kampe wrote on 14 October 2008 21:11: > > > * Z W (Tue, 14 Oct 2008 11:59:07 -0700) > > >> I'm have a shell script, test.sh below to run with cygwin in a > > >> Windows box. > > >> > > >> #!/usr/bin/sh > > >> > > >> ssh qa AT load01 'export MAX_MS=100; export OFFSET_MS=89900; export > > >> THREADS=4; export RAMP=1; export LOOPS=2; echo load01 ; cd > > >> /cygdrive/c/apps/bin ; pwd ; nohup ./start.sh \& ; ps > -efW | grep > > >> java ; exit ' > > > > > > That's not a shell script - it's just a single command. > > > > Uh, it's a shell script *containing* a single ssh command. Note the > > shebang. Also note the mention of the filename "test.sh", > which is not > > to be confused with the script "start.sh" on the remote machine. > > Putting a single command in a shell script is useless - > because it's a single command. You can call it a shell script > because it has the shebang but I call it as it is: it's just > a single command. ...whahuh? It's only useless until you have to type "ssh qa AT load01 'export MAX_MS=100; export OFFSET_MS=89900; export THREADS=4; export RAMP=1; export LOOPS=2; echo load01 ; cd /cygdrive/c/apps/bin ; pwd ; nohup ./start.sh \& ; ps -efW | grep java ; exit '" more than once. Regardless, as I believe others have already pointed out, the cygwin content of this thread is tending towards zero. I humbly suggest all parties involved take a break, get their morning coffee/dewski/homebrew, and continue this discussion in a forum more suited for answering this sort of generic unixoid question. -- Gary R. Van Sickle -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |