| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-Spam-Check-By: | sourceware.org |
| Date: | Tue, 14 Oct 2008 15:49:30 -0700 (PDT) |
| From: | John Hardin <jhardin AT impsec DOT org> |
| To: | Dave Korn <dave DOT korn AT artimi DOT com> |
| cc: | cygwin AT cygwin DOT com |
| Subject: | RE: cygwin shell scripting - how to pass values from command line to ssh remote command |
| In-Reply-To: | <013601c92e4d$f1a6cdd0$9601a8c0@CAM.ARTIMI.COM> |
| Message-ID: | <Pine.LNX.4.64.0810141547000.32592@mercury.impsec.org> |
| 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> |
| MIME-Version: | 1.0 |
| 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 |
On Tue, 14 Oct 2008, Dave Korn wrote:
> Thorsten Kampe wrote on 14 October 2008 21:11:
>
>>> 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 '
>
>> Also the "pwd".
>
> Surely not, if it's a bit of debugging trace that lets ZW know that the
> directory exists and so the cd command succeeded and there must be something
> else wrong if the script doesn't execute?
Wouldn't something along the lines of
cd /cygdrive/c/apps/bin && nohup ./start.sh &
be a lot safer if you were worried about the directory not being there?
Working that into the one-liner is left as an exercise for the student...
:)
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhardin AT impsec DOT org FALaholic #11174 pgpk -a jhardin AT impsec DOT org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
Health Care _is_ a right - the government has no business keeping
you from getting it. But forcing somebody else to pay for your
health care at gunpoint (i.e. through taxation) is _not_ a right.
-----------------------------------------------------------------------
21 days until the Presidential Election
--
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 |