This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: How do I start two commands in .bat ?
- From: Daniel Bößwetter <boesswetter at peppermind dot de>
- To: a12 <a12 at swipnet dot se>
- Cc: cygwin-apps at cygwin dot com
- Date: Tue, 14 Jan 2003 10:42:39 +0100
- Subject: Re: How do I start two commands in .bat ?
- Organization: peppermind - Network Neue Medien
- References: <3E23D82B.76B5FF75@swipnet.se>
Which machine is vnc supposed to run on? localhost or derqjzp?
In the former case, you's say
bash -c "ssh isoft@derqjzp ; vncviewer"
in the latter case
bash -c "ssh isoft@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@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@peppermind.de
peppermind - Network Neue Medien, http://www.peppermind.de
Hirschgartenallee 25, D-80639 Muenchen
Tel. +49 89 17860 352, Fax. +49 89 178 1235