RE: cygwin shell scripting - how to pass values from command line to ssh remote command

2008-10-15 Thread Gary R. Van Sickle
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 > > >> > >

RE: cygwin shell scripting - how to pass values from command line to ssh remote command

2008-10-15 Thread Thorsten Kampe
* 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 [EMAIL PROTECTED] 'export MAX_MS=1

Re: cygwin shell scripting - how to pass values from command line to ssh remote command

2008-10-15 Thread Thorsten Kampe
* Z W (Tue, 14 Oct 2008 14:15:28 -0700) > Thanks for the response. > I think you understood my question. Yes. > I like to pass parameters from tesh.sh as command line arguments and > then pass them into the ssh remote command string. I'm just not sure > of the syntax so that I could pass the para

Re: cygwin shell scripting - how to pass values from command line to ssh remote command

2008-10-14 Thread Mark J. Reed
On Tue, Oct 14, 2008 at 2:59 PM, Z W wrote: > Question: > How can I pass arguments on command line with test.sh such that > variables MAX_MS, OFFSET_MS, THREADS, RAMP and LOOPS > could receive the argument parameters as opposed to hardcoding the numbers ? This isn't really a cygwin question; there

RE: cygwin shell scripting - how to pass values from command line to ssh remote command

2008-10-14 Thread John Hardin
On Tue, 14 Oct 2008, Dave Korn wrote: Thorsten Kampe wrote on 14 October 2008 21:11: ssh [EMAIL PROTECTED] '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 ; exi

Re: cygwin shell scripting - how to pass values from command line to ssh remote command

2008-10-14 Thread Matt Wozniski
On Tue, Oct 14, 2008 at 6:41 PM, Dave Korn wrote: > 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 [EMAIL PROTECTED] 'export MAX_MS=100;

RE: cygwin shell scripting - how to pass values from command line to ssh remote command

2008-10-14 Thread Dave Korn
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 [EMAIL PROTECTED] 'export MAX_MS=100; export OFFSET_MS=89900; export >> THREADS=4; export RAMP=

Re: cygwin shell scripting - how to pass values from command line to ssh remote command

2008-10-14 Thread Z W
Hi Thorsten Thanks for the response. I think you understood my question. I like to pass parameters from tesh.sh as command line arguments and then pass them into the ssh remote command string. I'm just not sure of the syntax so that I could pass the paramter values to the remote command string fr

Re: cygwin shell scripting - how to pass values from command line to ssh remote command

2008-10-14 Thread Thorsten Kampe
* 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 [EMAIL PROTECTED] 'export MAX_MS=100; export OFFSET_MS=89900; export > THREADS=4; export RAMP=1; export LOOPS=2; echo load01 ; cd > /cygdrive/c/apps/bi

cygwin shell scripting - how to pass values from command line to ssh remote command

2008-10-14 Thread Z W
Hi I'm have a shell script, test.sh below to run with cygwin in a Windows box. #!/usr/bin/sh ssh [EMAIL PROTECTED] '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