delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/14/08:20:01

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <3E240DF6.5521E4BE@swipnet.se>
Date: Tue, 14 Jan 2003 14:17:42 +0100
From: a12 <a12 AT swipnet DOT se>
X-Accept-Language: en
MIME-Version: 1.0
To: Daniel =?iso-8859-1?Q?B=F6=DFwetter?= <boesswetter AT peppermind DOT de>
CC: cygwin AT cygwin DOT com
Subject: Re: How do I start two commands in .bat ?
References: <3E23D82B DOT 76B5FF75 AT swipnet DOT se> <3E23DB8F DOT 80904 AT peppermind DOT de>

Daniel,

vnc server is run on derqjzp

C:
chdir C:\cygwin\bin
bash --login -i -c "ssh -L 5901:derqjzp:5900 -C isoft AT derqjzp
/cygdrive/c/progra~1/realvnc/vncviewer.exe"

requests isoft's password, and start ssh

C:
chdir C:\cygwin\bin
bash --login -i -c "ssh -L 5901:derqjzp:5900 -C isoft AT derqjzp ;
/cygdrive/c/progra~1/realvnc/vncviewer.exe"

requests isoft's password, and shuts down the cygwin window.

Any more hints ?

Daniel Bößwetter wrote:

> Which machine is vnc supposed to run on? localhost or derqjzp?
>
> In the former case, you's say
>
> bash -c "ssh isoft AT derqjzp ; vncviewer"
>
> in the latter case
>
> bash -c "ssh isoft AT derqjzp vncviewer"
>
> What you wrote (below) looks like you tried to start vncviewer from the
> .bat-file. This line is never reached, because bash never returns
> (unless you terminate ssh and even then it wouldn'r work, because it's a
> cygwin virtual path).
>
> Hope it helps.
> Daniel
>
> a12 wrote:
>
> >Hello gurus,
> >
> >In my ongoing process of starting ssh and vncviewer in one .bat
> >file, I have created the following:
> >
> >rem @echo off
> >chdir C:\cygwin\bin
> >bash --login -i -c "ssh -L 5901:derqjzp:5900 -C isoft AT derqjzp"
> >"/cygdrive/c/program files/realvnc/vncviewer.exe" &
> >
> >I enter the isoft's password, and ssh is started.
> >vncviewer is not started.
> >How do I make vncviewer started ?
> >
> >
>
> --
> Daniel Boesswetter, mailto:boesswetter AT peppermind DOT de
> peppermind - Network Neue Medien, http://www.peppermind.de
> Hirschgartenallee 25, D-80639 Muenchen
> Tel. +49 89 17860 352, Fax. +49 89 178 1235


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019